The Nyan Cat result printer for PHPUnit works with PHP 5.3.3 or later.
The recommended way to install the Nyan Cat result printer for PHPUnit is
through composer. Just create a composer.json
file
and run the php composer.phar install --dev
command to install it:
{
"require-dev": {
"whatthejeff/nyancat-phpunit-resultprinter": "1.0.*@dev"
}
}
Once installed, add the following attributes to the <phpunit>
element in your
phpunit.xml
file:
printerFile="vendor/whatthejeff/nyancat-phpunit-resultprinter/src/NyanCat/PHPUnit/ResultPrinter.php"
printerClass="NyanCat\PHPunit\ResultPrinter"
To run the test suite, you need composer.
$ php composer.phar install --dev
$ vendor/bin/phpunit
The Nyan Cat result printer for PHPUnit was heavily inspired by the glorious mocha/nyan.js.
The Nyan Cat result printer for PHPUnit is licensed under the MIT license.