zf2timo/phpunit-pretty-result-printer

Prints Result of PHPUnit in a nicer format

2.0.0 2017-10-04 19:29 UTC

This package is auto-updated.

Last update: 2024-12-10 20:30:55 UTC


README

This Result Printer for PHPUnit shows more information in a more readable format during a test run

Preview

PHPUnitPrettyResultPrinter Screenshot

Installation

Installation is provided via composer and can be done with the following command:

$ composer require --dev zf2timo/phpunit-pretty-result-printer

To activate the Printer for PHPUnit, just add it to your configuration XML:

<?xml version="1.0" encoding="UTF-8"?>
<phpunit printerClass="zf2timo\PrettyResultPrinter\Printer">
 // ....
</phpunit>

Configuration

In some Environments like Travis, Jenkins or some old Bash Console the UTF-8 Characters ✘ and ✔ are not supported. You can enable the default PHPUnit symbols by exporting an environment variable:

$ export PHP_CI=true
$ php vendor/bin/phpunit