This Result Printer for PHPUnit shows more information in a more readable format during a test run
Branch | Status | Dependency Status |
---|---|---|
master | ||
develop |
Installation is provided via composer and can be done with the following command:
$ composer require --dev zf2timo/phpunit-pretty-result-printer
To activate the Printer for PHPUnit, just add it to your configuration XML:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit printerClass="zf2timo\PrettyResultPrinter\Printer">
// ....
</phpunit>
In some Environments like Travis, Jenkins or some old Bash Console the UTF-8 Characters ✘ and ✔ are not supported. You can enable the default PHPUnit symbols by exporting an environment variable:
$ export PHP_CI=true
$ php vendor/bin/phpunit