Download and install the tutorial and PHPUnit using Composer:
composer create-project epdenouden/phpunit-testdox-tutorial
Keep self-testing and fixing until everything is green!
cd phpunit-testdox-tutorial/
composer test
File | Topic |
---|---|
unit/HowToUseThisTutorialTest.php |
@testdox annotation basics |
unit/TestDoxAutomaticCapitalizationTest.php |
improve naming of tests and test suites |
unit/TestDoxDataProviderTest.php |
data providers: quickly identify failing scenarios by including parameter values |
end-to-end/*.phpt |
PHPUnit end-to-end (self-)testing |
- PHPUnit manual on the
@testdox
annotation - PHPUnit manual on the
--testdox
command line option - PHPT file format reference