Overview
Syllabus
Introduction / overview
Install PHPUnit
Create a test file
Run a test from the command line
Making assertions
Tests which fail
Using colors in test feedback
Testing objects and classes
Using the '@test' annotation
Using filter option to run individual tests
Configuring phpunit usng phpunit.xml
Autoloading classes in tests
Test scope
The setUp method
The tearDown method
Testing errors and exceptions
Test doubles
Creating mock objects
Mocking methods
Injecting mock test dependencies
Test number of times a method is expected to be called
Grouping tests
Taught by
Gary Clarke