Download the PHP package whatthejeff/fab-phpunit-resultprinter without Composer
On this page you can find all versions of the php package whatthejeff/fab-phpunit-resultprinter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download whatthejeff/fab-phpunit-resultprinter
More information about whatthejeff/fab-phpunit-resultprinter
Files in whatthejeff/fab-phpunit-resultprinter
Package fab-phpunit-resultprinter
Short Description Make your unit tests fabulous!
License MIT
Homepage http://github.com/whatthejeff/fab-phpunit-resultprinter
Informations about the package fab-phpunit-resultprinter
The Fab PHPUnit Result Printer
Make your unit tests fabulous!
Usage
Requirements
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:
Installation
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"
Tests
To run the test suite, you need composer.
$ php composer.phar install
$ vendor/bin/phpunit
Acknowledgements
The Fab PHPUnit Result Printer was heavily inspired by the glorious minitest/pride.
License
Fab is licensed under the MIT license.