whatthejeff / fab-phpunit-resultprinter
Make your unit tests fabulous!
Installs: 8 789
Dependents: 2
Suggesters: 0
Security: 0
Stars: 21
Watchers: 2
Forks: 2
Open Issues: 1
Requires
- php: >=5.3.3
- whatthejeff/fab: >=1.0.0
Requires (Dev)
- pear-pear/pear: 1.9.4
- phpunit/php-code-coverage: 1.3.*@dev
- phpunit/php-file-iterator: >=1.3.1@dev
- phpunit/php-text-template: >=1.1.1@dev
- phpunit/php-timer: >=1.1.0@dev
- phpunit/phpunit: 3.8.*@dev
- phpunit/phpunit-mock-objects: 1.3.*@dev
- sebastian/diff: >=1.0.0@dev
- sebastian/exporter: >=1.0.0@dev
- sebastian/version: >=1.0.0@dev
This package is not auto-updated.
Last update: 2024-11-09 15:41:15 UTC
README
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.