Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Nyan Cat result printer for PHPUnit
branch: master

This branch is 10 commits behind whatthejeff:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/NyanCat/PHPUnit
tests/NyanCat/PHPUnit/Tests
.gitignore
.travis.yml
ChangeLog.md
LICENSE
README.md
composer.json
nyan.gif
phpunit.xml.dist

README.md

Video of the Nyan Cat result printer for PHPUnit

Requirements

The Nyan Cat result printer for PHPUnit works with PHP 5.3.3 or later.

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 php composer.phar install command to install it:

{
    "require-dev": {
        "whatthejeff/nyancat-phpunit-resultprinter": "~1.2"
    }
}

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"

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

Build Status

To run the test suite, you need composer.

$ php composer.phar install
$ vendor/bin/phpunit

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.

Something went wrong with that request. Please try again.