What if you could learn how to write tests from someone who has been using them for a long time and also knows how to explain it in a way that cuts down on the fear and anxiety while teaching you what you need to go to get started immediately?
In this tutorial, Chris will teach the basics of writing tests using PHPUnit. Topics covered include:
* high-level discussion of the role of testing
* the Arrange-Act-Assert pattern
* what a PHPUnit test file looks like and where to locate them
* test doubles and when to use them
* strategies for building test scenarios
Attendees will need the following:
* a laptop with PHP 7.2.x + stable PHPUnit + Mockery the most and be ready to actually write tests.