czim / phpunit-printer
Customized PHPUnit output
Installs: 38 718
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=8.1
- phpunit/phpunit: >=10.0.0
README
Custom styled PHPUnit print output for testing our projects.
Compatibility
Install
composer require czim/phpunit-printer --dev
Usage
You can add the package extension to your project's phpunit.xml
file:
<phpunit> <!-- ... --> <extensions> <bootstrap class="Czim\PHPUnitPrinter\PrintExtension"/> </extensions> <!-- ... --> </phpunit>
Then you can run with only the new custom output by hiding the default progress:
vendor/bin/phpunit --no-progress
You can also run it with normal progress. The custom formatting will be displayed directly after the normal progress indicators when all tests are finished.