Sameer NyaupanePHP Test Driven Development Part 5: Integration TestingLet’s learn about Integration testing today. Integration testing is a method of testing by passing in the real dependencies and thus…3 min read·Nov 6, 2018--1--1
Sameer NyaupaneHow to setup PHP Code Sniffer in PHPStormFirst we need to include a dependency for squizlabs/php_codesniffer in our composer.json file. For example:4 min read·Oct 25, 2018--4--4
Sameer NyaupaneTesting your tests: PHP Mutation Testing with Infection FrameworkHow reliable are the tests we write? Are they covering the edge cases? What happens when the code changes? Do the tests still pass?4 min read·Oct 12, 2018----
Sameer NyaupanePHP Test Driven Development Part 4: Enter The MockHey there, welcome to part 4! Today we’ll learn how to mock. Mocking is a process where you create a fake instance of a real class, and…4 min read·Sep 15, 2018--1--1
Sameer NyaupanePHP Test Driven Development Part 3: Unit Testing ContinuedNow continuing from Part 2, let’s revisit the test we were looking at:5 min read·Sep 12, 2018--1--1
Sameer NyaupanePHP Test Driven Development Part 2: Unit TestingAll right, welcome to part 2 of “PHP Test Driven Development” series. Today we will go through the PHPUnit setup in detail.5 min read·Dec 14, 2017--2--2
Sameer NyaupanePHP Test Driven Development Part 1: IntroductionTest Driven Development is a coding practice where you write a test first then write the code to pass that test, usually in a short…5 min read·Dec 1, 2017--6--6
Sameer NyaupanePHP Software Architecture Part 4: RefactoringAll right. Let’s go over and refactor our code from part one.4 min read·Oct 31, 2017--2--2
Sameer NyaupanePHP Software Architecture Part 3: Extensible ArchitectureWhen I first started using this architecture, I had no name for it. But having a name will make it easier for us to remember it. Let’s call…4 min read·Oct 30, 2017----
Sameer NyaupanePHP Software Architecture Part 2: The AlternativesBefore we go into the refactoring process, let’s first look at the alternatives we already have. We will go through each of them and weigh…6 min read·Oct 29, 2017----