Overwrites the PHPUnit Printer with formatted output.
composer require --dev ixnode/php-phpunit-printervendor/bin/php-phpunit-printer -Vphp-phpunit-printer 0.1.0 (02-04-2023 22:33:53) - Björn Hempel <bjoern@hempel.li>After installing this Composer package, you can edit your phpunit.xml as follows:
<phpunit
...
printerClass="Ixnode\PhpPhpunitPrinter\Printer"
>
...
</phpunit>A complete phpunit.xml example could look like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunitxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"backupGlobals="false"colors="true"convertDeprecationsToExceptions="false"stopOnFailure="true"printerClass="Ixnode\PhpPhpunitPrinter\TestDoxPrinter"
>
<php>
<ininame="display_errors"value="1"/>
<ininame="error_reporting"value="-1"/>
<servername="APP_ENV"value="test"force="true"/>
<servername="SHELL_VERBOSITY"value="-1"/>
<servername="SYMFONY_PHPUNIT_REMOVE"value=""/>
<servername="SYMFONY_PHPUNIT_VERSION"value="9.5"/>
<envname="SYMFONY_DEPRECATIONS_HELPER"value="disabled"/>
</php>
<testsuites>
<testsuitename="PHPUnit Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverageprocessUncoveredFiles="true">
<include>
</include>
</coverage>
</phpunit>git clone git@github.com:ixnode/php-phpunit-printer.git &&cd php-phpunit-printercomposer installcomposer testThis tool is licensed under the MIT License - see the LICENSE file for details
