PHPackages                             sempro/phpunit-pretty-print - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. sempro/phpunit-pretty-print

ActiveLibrary[Testing &amp; Quality](/categories/testing)

sempro/phpunit-pretty-print
===========================

Prettify PHPUnit output

1.4.0(5y ago)1863.8M—2.7%25[3 issues](https://github.com/indentno/phpunit-pretty-print/issues)[1 PRs](https://github.com/indentno/phpunit-pretty-print/pulls)20MITPHPPHP &gt;=7.1.0CI failing

Since Dec 1Pushed 3y ago7 watchersCompare

[ Source](https://github.com/indentno/phpunit-pretty-print)[ Packagist](https://packagist.org/packages/sempro/phpunit-pretty-print)[ RSS](/packages/sempro-phpunit-pretty-print/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (30)Used By (20)

phpunit-pretty-print
====================

[](#phpunit-pretty-print)

> ✅ Make your PHPUnit output beautiful

[![Build Status](https://camo.githubusercontent.com/4548fa2135afd13eb5ac8b92bf58890c2b4bf930ee2bffd509b8affde9c2db66/68747470733a2f2f7472617669732d63692e636f6d2f73656d70726f2f706870756e69742d7072657474792d7072696e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/sempro/phpunit-pretty-print)[![Packagist](https://camo.githubusercontent.com/7bd30442288668c243bc8f15e6801ec8c2a9e55005482181f24de018875d67c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73656d70726f2f706870756e69742d7072657474792d7072696e742e737667)](https://packagist.org/packages/sempro/phpunit-pretty-print)[![Packagist](https://camo.githubusercontent.com/94a482503c0d4152eec5dbff5165d01e185cf209b4febf277388b85693c5c448/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73656d70726f2f706870756e69742d7072657474792d7072696e742e737667)](https://packagist.org/packages/sempro/phpunit-pretty-print)[![PRs Welcome](https://camo.githubusercontent.com/dd0b24c1e6776719edb2c273548a510d6490d8d25269a043dfabbd38419905da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e737667)](http://makeapullrequest.com)[![psr-2](https://camo.githubusercontent.com/04699a17f5b5387c484c2306e1726816deef2864816472296c82ce4c7a88e394/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d5053525f322d626c75652e737667)](http://www.php-fig.org/psr/psr-2/)

### Installation

[](#installation)

```
composer require sempro/phpunit-pretty-print --dev
```

This package requires `>=7.0.0` of PHPUnit.

If you're running on `6.x`, please use version `1.0.3`.

If you are running on `9.x` use the `\Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9` class

### Usage

[](#usage)

You can specify the printer to use on the phpunit command line:

For PhpUnit &lt; 9, use the following:

```
php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinter' tests/
```

For PhpUnit &gt;= 9, use the following:

```
php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9' tests/
```

Optionally, you can add it to your project's `phpunit.xml` file instead:

```

```

[![phpunit-pretty-print](https://raw.githubusercontent.com/Sempro/phpunit-pretty-print/master/preview.gif)](https://raw.githubusercontent.com/Sempro/phpunit-pretty-print/master/preview.gif)

### Optional

[](#optional)

To view progress while tests are running you can set `PHPUNIT_PRETTY_PRINT_PROGRESS=true` as environment variable on your server or within your `phpunit.xml` config file.

```

```

### License

[](#license)

MIT © [Sempro AS](http://www.sempro.no)

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity60

Solid adoption and visibility

Community47

Growing community involvement

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 51.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~42 days

Recently: every ~104 days

Total

28

Last Release

1960d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.0.0

1.0.9PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/35d9e549ce3a4c7fe0c64aa8664a21f8c97b7291c4ef62533ac578b44c5e3bae?d=identicon)[indentno](/maintainers/indentno)

---

Top Contributors

[![ecrmnn](https://avatars.githubusercontent.com/u/1481696?v=4)](https://github.com/ecrmnn "ecrmnn (65 commits)")[![ventrec](https://avatars.githubusercontent.com/u/701788?v=4)](https://github.com/ventrec "ventrec (28 commits)")[![gforsythe-godaddy](https://avatars.githubusercontent.com/u/95944072?v=4)](https://github.com/gforsythe-godaddy "gforsythe-godaddy (10 commits)")[![antonkomarev](https://avatars.githubusercontent.com/u/1849174?v=4)](https://github.com/antonkomarev "antonkomarev (3 commits)")[![markhalliwell](https://avatars.githubusercontent.com/u/351902?v=4)](https://github.com/markhalliwell "markhalliwell (3 commits)")[![viktorivanov](https://avatars.githubusercontent.com/u/6695695?v=4)](https://github.com/viktorivanov "viktorivanov (2 commits)")[![simondeeley](https://avatars.githubusercontent.com/u/493834?v=4)](https://github.com/simondeeley "simondeeley (2 commits)")[![salkhwlani](https://avatars.githubusercontent.com/u/10876587?v=4)](https://github.com/salkhwlani "salkhwlani (2 commits)")[![abinadi](https://avatars.githubusercontent.com/u/1260758?v=4)](https://github.com/abinadi "abinadi (2 commits)")[![DanielBadura](https://avatars.githubusercontent.com/u/2017762?v=4)](https://github.com/DanielBadura "DanielBadura (2 commits)")[![YaFou](https://avatars.githubusercontent.com/u/33806646?v=4)](https://github.com/YaFou "YaFou (1 commits)")[![bobbybouwmann](https://avatars.githubusercontent.com/u/5872362?v=4)](https://github.com/bobbybouwmann "bobbybouwmann (1 commits)")[![hotmeteor](https://avatars.githubusercontent.com/u/378585?v=4)](https://github.com/hotmeteor "hotmeteor (1 commits)")[![MLDMoritz](https://avatars.githubusercontent.com/u/46711821?v=4)](https://github.com/MLDMoritz "MLDMoritz (1 commits)")[![piRGoif](https://avatars.githubusercontent.com/u/8947448?v=4)](https://github.com/piRGoif "piRGoif (1 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (1 commits)")[![tsterker](https://avatars.githubusercontent.com/u/1156230?v=4)](https://github.com/tsterker "tsterker (1 commits)")

---

Tags

phpphp7phpunitphpunit-pretty-printpretty-printtesting

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/sempro-phpunit-pretty-print/health.svg)

```
[![Health](https://phpackages.com/badges/sempro-phpunit-pretty-print/health.svg)](https://phpackages.com/packages/sempro-phpunit-pretty-print)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[jasonmccreary/laravel-test-assertions

A set of helpful assertions when testing Laravel applications.

3513.9M32](/packages/jasonmccreary-laravel-test-assertions)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[typo3/testing-framework

The TYPO3 testing framework provides base classes for unit, functional and acceptance testing.

675.0M775](/packages/typo3-testing-framework)[robiningelbrecht/phpunit-pretty-print

Prettify PHPUnit output

76460.0k15](/packages/robiningelbrecht-phpunit-pretty-print)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
