limedeck/phpunit-detailed-printer
A custom PHPUnit printer that replaces the default output with more informative, readable test names plus per-test execution time, so you can spot failures and slow tests quickly while the suite runs. Compatible across PHPUnit versions.
It turns the default PHPUnit output...

... into a more informative output with readable function names and execution time allowing you to start fixing errors even before the whole suite finishes:

composer require limedeck/phpunit-detailed-printer --dev
| PHPUnit | Package |
|---|---|
| 9.x.x | 6.x.x |
| 8.x.x | 5.x.x |
| 7.x.x | 4.x.x |
| 6.x.x | 3.2.x |
| 5.x.x | 2.0.x |
Set the printer class in phpunit.xml
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
...
printerClass="LimeDeck\Testing\Printer"
...
>
To run the test suite, use phpunit command.
Thanks for your interest in PHPUnit Detailed Printer! If you'd like to contribute, please read our contributing guide.
Detailed PHPUnit Printer is open-sourced software licensed under the MIT license. If you'd like to read the license agreement, click here.
How can I help you explore Laravel packages today?