Getting the most of PHPUnit assertions

A5f6a4724de2c2986c8cbd4f46d52a7c?s=47 Gabriel Caruso
September 07, 2019

Getting the most of PHPUnit assertions

Do you know, when you are writing a test, something isn't going right and you get a failure message "Failed asserting that false is true"? Let's see how we can improve our test's assertion in other to get more helpful errors by using dedicated PHPUnit assertions. We're going to see how we can make our suite of tests stricter, avoiding PHP's false-positives weakness. Also, we'll be seeing how PHPUnit works under the hood, from the assertion method to the verification itself.


Gabriel Caruso

September 07, 2019