czim/phpunit-printer

Customized PHPUnit output

1.0.0 2021-02-08 16:11 UTC

This package is auto-updated.

Last update: 2023-01-08 19:59:58 UTC


README

Custom styled PHPUnit print output for testing our projects.

Compatibility

Use ^0.9 for PHPUnit < 9; and ^1.0 PHPUnit 9+.

Install

composer require czim/phpunit-printer --dev

Usage

You can specify the printer to use on the phpunit command line:

php vendor/bin/phpunit --printer 'Czim\PHPUnitPrinter\PrettyPrinter' tests/

Optionally, you can add it to your project's phpunit.xml file instead:

<phpunit
    ...
    printerClass="Czim\PHPUnitPrinter\PrettyPrinter">
    ...