Make your unit tests fabulous!
The Fab PHPUnit Result Printer requires:
- PHP 5.3.3 or later.
- A terminal emulator with support for ANSI escape sequences.
NOTE: By default, the Windows console does not support ANSI escape sequences. If you'd like to use the Fab PHPUnit Result Printer on Windows, you may want to try one of the following solutions:
The recommended way to install the Fab PHPUnit Result Printer is through
composer. Just create a composer.json file and
run the php composer.phar install command to install it:
{
"require-dev": {
"whatthejeff/fab-phpunit-resultprinter": "~1.1"
}
}Once installed, add the following attributes to the <phpunit> element in your
phpunit.xml file:
printerFile="vendor/whatthejeff/fab-phpunit-resultprinter/src/Fab/PHPUnit/ResultPrinter.php"
printerClass="Fab\PHPUnit\ResultPrinter"
NOTE: If PHPUnit was not installed via composer, you also need to include
the composer autoloader. One easy way to do this is to add the following
attribute to the <phpunit> element in your phpunit.xml file:
bootstrap="vendor/autoload.php"
To run the test suite, you need composer.
$ php composer.phar install
$ vendor/bin/phpunit
The Fab PHPUnit Result Printer was heavily inspired by the glorious minitest/pride.
Fab is licensed under the MIT license.

