Did you know that a Mock is only one type of a test double? Most of us use the word "mock" to mean any kind of test double, but there's actually five different types. It really can help you understand what you're trying to accomplish with your test if you know a little bit more … Continue reading The Five Types of Test Doubles & How to Create Them in PHPUnit
Unit Testing
#Hacktoberfest Week 2 Recap
We're over halfway through the month of October, which means #Hacktoberfest is halfway done! Did you get your 4 PRs yet? This past week, I got 5 more PRs done, two around unit tests for one project, a documentation fix for a unit-testing package for Laravel's Eloquent, adding new functionality for the Snorlax library that … Continue reading #Hacktoberfest Week 2 Recap
How Do I Know If My Unit Tests Are High Quality?
I get asked a lot how we can tell if our unit tests are actually any good. When doing test code review, there's a lot of factors I look for to judge whether or not they are effective, quality unit tests. For a project I am working on, I'm looking for some examples of code … Continue reading How Do I Know If My Unit Tests Are High Quality?