czim/phpunit-printer

Customized PHPUnit output

Maintainers

👁 czim

Package info

github.com/czim/phpunit-printer

pkg:composer/czim/phpunit-printer

Statistics

Installs: 55 982

Dependents: 2

Suggesters: 0

Stars: 2

Open Issues: 0

2.0.2 2025-10-13 11:40 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT ae1cfcfd5721457bf6683e2480bb945d59aabe45

This package is auto-updated.

Last update: 2026-06-13 12:57:57 UTC


README

Custom styled PHPUnit print output for testing our projects.

Compatibility

PHPUnit version Package version
< 9 0.9
9 1.0
10 2.0

Install

composer require czim/phpunit-printer --dev

Usage

You can add the package extension to your project's phpunit.xml file:

<phpunit>
 <!-- ... -->

 <extensions>
 <bootstrap class="Czim\PHPUnitPrinter\PrintExtension"/>
 </extensions>
 
 <!-- ... -->
</phpunit>

Then you can run with only the new custom output by hiding the default progress:

vendor/bin/phpunit --no-progress

You can also run it with normal progress. The custom formatting will be displayed directly after the normal progress indicators when all tests are finished.