WIP repo for teaching people how to test. This series of workshops is being created with Laravel in mind, and thus contains some Laravel functionality, but the majority of it is purely PHPUnit.
- Intro to testing
- Doubles: Mocks, stubs and prophecy
- Advanced techniques
- Refresher
To add PHPUnit into your own project, start with these steps: https://phpunit.de/getting-started-with-phpunit.html
Quick-start for PHP 7.3 or later:
composer require --dev phpunit/phpunit ^9