jeroen / nyancat-phpunit-resultprinter
Nyan Cat result printer for PHPUnit
Installs: 33 802
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 23
Open Issues: 0
Requires
- php: >=7.1
- whatthejeff/nyancat-scoreboard: ~1.1
Requires (Dev)
- phpunit/phpunit: ^7.0|^8.0|^9.0
Replaces
README
Requirements
The Nyan Cat result printer for PHPUnit requires a terminal emulator with support for ANSI escape sequences, including color and cursor control.
NOTE: By default, the Windows console does not support ANSI escape sequences. If you'd like to use the Nyan Cat result printer on Windows, you may want to try one of the following solutions:
Installation
The recommended way to install the Nyan Cat result printer for PHPUnit is
through composer. Just create a composer.json
file
and run the composer install
command to install it:
{ "require-dev": { "jeroen/nyancat-phpunit-resultprinter": "^2.0" } }
Once installed, add the following attributes to the <phpunit>
element in your phpunit.xml
file:
printerFile="vendor/jeroen/nyancat-phpunit-resultprinter/src/NyanCat/PHPUnit/ResultPrinter.php"
printerClass="NyanCat\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"
Switching over from whatthejeff
To switch from whatthejeff/nyancat-phpunit-resultprinter
to jeroen/nyancat-phpunit-resultprinter
,
you need to
- Update your
composer.json
: replacewhatthejeff/nyancat
byjeroen/nyancat
- Update your
phpunit.xml
: replacevendor/whatthejeff/
byvendor/jeroen/
- Run
composer update
Tests
To run the test suite, you need composer.
$ composer install
$ composer test
Acknowledgements
The Nyan Cat result printer for PHPUnit was heavily inspired by the glorious mocha/nyan.js.
License
The Nyan Cat result printer for PHPUnit is licensed under the MIT license.