Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 507 Bytes

File metadata and controls

13 lines (10 loc) · 507 Bytes

testing-with-phpunit

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.

  1. Intro to testing
  2. Doubles: Mocks, stubs and prophecy
  3. Advanced techniques
  4. 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