epdenouden/phpunit-testdox-tutorial

Self-guided tutorial for PHPUnit TestDox human-readable reports.

1.1.2 2020-03-06 14:43 UTC

This package is auto-updated.

Last update: 2025-07-07 21:03:10 UTC


README

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

Topics covered

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

TestDox manual