codelicia/nyancat

Nyan Cat result printer for PHPUnit

2.0.1 2020-02-24 18:01 UTC

This package is auto-updated.

Last update: 2024-12-19 21:50:14 UTC


README

Fork from the amazing work of @whatthejeff!

Requirements

The Nyan Cat result printer for PHPUnit requires:

  • PHP 7.4+.
  • PHPUnit 9+.
  • A terminal emulator with support for ANSI escape sequences, including color and cursor control.

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": {
        "codelicia/nyancat": "^2.0"
    }
}

Once installed, add the following attributes to the <phpunit> element in your phpunit.xml file:

printerFile="vendor/codelicia/nyancat/src/NyanCatPrinter.php"
printerClass="Codelicia\NyanCat\NyanCatPrinter"

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"

License

The Nyan Cat result printer for PHPUnit is licensed under the MIT license.