frzb / phpunit-pretty-io
Pretty IO For PHPUnit
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 3
pkg:composer/frzb/phpunit-pretty-io
Requires
- php: ^8.1
- phpunit/phpunit: ^9|^10
- spatie/regex: ^3.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.9
- symfony/var-dumper: ^6.1
This package is auto-updated.
Last update: 2025-09-29 03:00:00 UTC
README
✅ Make your PHPUnit output beautiful
Installation
composer require frzb/phpunit-pretty-io --dev
This package supports PHPUnit 9
and 10
.
Usage
You can specify the printer to use on the phpunit command line:
Use the following:
php vendor/bin/phpunit --printer 'FRZB\PHPUnit\IO\PrettyInputOutput' tests/
Optionally, you can add it to your project's phpunit.xml
file instead:
<phpunit bootstrap="bootstrap.php" colors="true" printerClass="FRZB\PHPUnit\IO\PrettyInputOutput" />
Optional
To view progress while tests are running you can set FRZB_PHPUNIT_PRETTY_IO_PROGRESS=true
as environment variable on your server or within your phpunit.xml
config file.
<phpunit> <php> <env name="FRZB_PHPUNIT_PRETTY_IO_PROGRESS" value="true" /> </php> </phpunit>