Write PHP unit tests using Pest
· 8 min read
If you think writing unit tests in PHP is fun, stay in the room; the rest of you please leave. And then everyone leaves, including the person who asked the question.
Writing “old-fashioned” unit tests with PHPUnit is so boring that almost nobody does it.
And for some time now, https://pestphp.com/ has come along and totally changed the way things are done.
Pest is a wrapper around PhpUnit so, for instance, every command line arguments supported by PhpUnit can be used for Pest.