josrom/phpunit-unicode-printer

Printer for PHPUnit using Unicode

9.1.0 2021-07-30 13:21 UTC

README

Total Downloads Latest Stable Version License

Installation

To get the last version of PHPUnit Unicode Printer, simply require the project using Composer:

composer require --dev josrom/phpunit-unicode-printer:9.*

Instead, you may of course manually update your require block and run composer update if you so choose:

{
    "require-dev": {
        "josrom/phpunit-unicode-printer": "9.*"
    }
}

Modify the phpunit.xml to add the printer:

<phpunit ...
         colors="true"
         printerClass="PHPUnit\Printer"
         ...>
         ...
 </phpunit>

or

<phpunit ...
         colors="true"
         printerClass="PHPUnit\PrinterClass"
         ...>
         ...
 </phpunit>

or

<phpunit ...
         colors="true"
         printerClass="PHPUnit\PrinterMethod"
         ...>
         ...
 </phpunit>

PHPUnit 8

For previous versions of PHPUnit use the tag 0.4.* or 8.*

PHPUnit 7

For previous versions of PHPUnit use the tag 0.3.* or 7.*

PHPUnit 6

For previous versions of PHPUnit use the tag 0.2.*

PHPUnit <5

For previous versions of PHPUnit use the tag 0.1.*