whatthejeff/fab-phpunit-resultprinter

Make your unit tests fabulous!

v1.1.0 2013-10-30 06:06 UTC

This package is not auto-updated.

Last update: 2024-12-21 16:17:41 UTC


README

Make your unit tests fabulous!

Usage

fabulous unit tests

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

Build Status

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.