Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpunit Printer Laravel Package

tflori/phpunit-printer

Custom PHPUnit printers for cleaner test output. Includes TextPrinter for human-friendly, readable progress reporting. Install via Composer and enable via phpunit --printer or printerClass in phpunit.xml; works across multiple PHP/PHPUnit versions.

View on GitHub
Deep Wiki
Context7

PhpUnitPrinter

This library holds different printers for phpunit.

ok ok - at the moment there is only one: TextPrinter

How to install

Use composer:

$ composer require tflori/phpunit-printer

note that there is no version defined - composer will automatically install the correct version for your php and phpunit version

Using different phpunit versions in CI

You are maybe developing a library. Then you should not commit the composer.lock and you are probably executing your unit tests on different php and phpunit versions. You will then need to modify your composer.json manually to use any matching version of phpunit and phpunit-printer:

{
  "require": {
    "phpunit/phpunit": "*",
    "tflori/phpunit-printer": "*"
  }
}

How to use

You can now start using it by passing the printer to the phpunit configuration.

Via commandline:

$ phpunit --printer PhpUnitPrinter\TextPrinter

Via configuration file:

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
         printerClass="PhpUnitPrinter\TextPrinter">
    <!-- ... -->
</phpunit>

Available printer

TextPrinter

The text printer is a copy of a script I found long time ago on the net. I don't remember where I found it, and it didn't have annotations.

If someone knows who has written that printer I would appreciate a hint to honor him in the author section.

Example:
Text Printer

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai