PHPackages                             shawnmccool/phpunit-result-printer - 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. shawnmccool/phpunit-result-printer

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

shawnmccool/phpunit-result-printer
==================================

PHPUnit Pretty Result Printer

3.0(5y ago)027MITPHPPHP ^7.1 | ^8.0

Since Jul 18Pushed 5y agoCompare

[ Source](https://github.com/ShawnMcCool/phpunit-pretty-result-printer)[ Packagist](https://packagist.org/packages/shawnmccool/phpunit-result-printer)[ RSS](/packages/shawnmccool-phpunit-result-printer/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (6)Versions (111)Used By (0)

CodeDungeon PHPUnit Pretty Result Printer
=========================================

[](#codedungeon-phpunit-pretty-result-printer)

Version 0.29.2 Extend the default PHPUnit Result Printer with a modern, pretty printer!

---

📦 [PHPUnit Pretty Result Printer -- Packagist](https://packagist.org/packages/codedungeon/phpunit-result-printer)

Installation
------------

[](#installation)

Installation provided via composer and can be done with the following command, the current version requires PHP 7.1 or greater:

```
> composer require --dev codedungeon/phpunit-result-printer
```

### Upgrading to &gt;= 0.29.x

[](#upgrading-to--029x)

If you are upgrading from previous verison and have published `phpunit-printer.yml` locally, make sure add the following to the options section

```
  ...
  cd-printer-dont-format-classname: false
  ...
```

### Execute Initialization Script (Optional)

[](#execute-initialization-script-optional)

The following steps are optional, but will provide zero configuration for implementing **phpunit-pretty-result-printer**

- Adds `printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer"` to `phpunit.xml` file
- Copies default `phpunit-printer.yml` to project root for easier customization

```
> php ./vendor/codedungeon/phpunit-result-printer/src/init.php
```

#### Manual Configuration

[](#manual-configuration)

Alternately, if you wish to configure **phpunit-pretty-result-printer** manually, you will need to update your `phpunit.xml` file as follows

```

    // ....

```

Or from Command-Line:

```
 > phpunit --printer=Codedungeon\\PHPUnitPrettyResultPrinter\\Printer
```

### Laravel 5.3 with PHP version 7.0.x

[](#laravel-53-with-php-version-70x)

If you are using PHP 7.0.x, you will need to use a compatible version of PHPUnit Result Printer (version 0.8.x)

```
> composer require --dev codedungeon/phpunit-result-printer:^0.8
```

### AnyBar Integration

[](#anybar-integration)

If you have AnyBar installed, it will be enabled by default. You can disable using `cd-printer-anybar-enabled` option (see below)

\*\*Anybar is off by default, thus you will need to set the `cd-printer-anybar` option in the `phpunit-printer.yml` to `true` if you wish to use Anybar.

This has been done to address issues with using CI tools such as travis (please see [Issue 122](https://github.com/mikeerickson/phpunit-pretty-result-printer/issues/122) for details) \*\*

*NOTE: AnyBar is only available with PHPUnit 7.1 or greater. If you need support for previous versions, please let us know. We are slowly deprecating versions before 7.1.*

### Configuration Options

[](#configuration-options)

- Create a `phpunit-printer.yml` file in your application root to override default (or anywhere use up the parent tree. It will search recursively up the tree until a configuration file is found. If not found, default configuration will be used). The following options are available (along with their default values):

#### Options

[](#options)

**Property Name****Default****Description**`cd-printer-hide-class`falseHides the display of the test class name`cd-printer-simple-output`falseUses the default PHPUnit markers (but still uses Printer)`cd-printer-show-config`trueShow path to used configuration file`cd-printer-hide-namespace`trueHide test class namespaces (will only show print class name)`cd-printer-anybar`trueEnable AnyBar (if anybar is not installed, settings will be ignored)`cd-printer-anybar-port`1738Define AnyBar port number`cd-printer-dont-format-classname`falseShow entire classname\*- If `cd-printer-hide-namespace` set to `false` and `cd-printer-dont-format-classname` to `false` will attempt to keep everyting formatted
- If `cd-printer-dont-format-classname` nothing will be formatted and full classname will be displayed

#### Markers

[](#markers)

You can customize the markers which are used for `success`, `fail`, `error`, `skipped`, `incomplete` by modifying the `phpunit-printer.yml` file.

**Marker****Value** \*cd-pass"✔ "cd-fail"✖ "cd-error"⚈ "cd-skipped"→ "cd-incomplete"∅ "cd-risky"⌽ "*\* Notice space after each marker. This makes the output a little more visually appealing, thus keep that in mind when creating your own custom markers*

License
-------

[](#license)

Copyright © 2017-2021 Mike Erickson Released under the MIT license

Credits
-------

[](#credits)

phpunit-result-printer written by Mike Erickson

E-Mail:

Twitter: [@codedungeon](http://twitter.com/codedungeon)

Website:

### Screenshot

[](#screenshot)

[![Screenshot](https://raw.githubusercontent.com/mikeerickson/phpunit-pretty-result-printer/master/sample.png)](https://raw.githubusercontent.com/mikeerickson/phpunit-pretty-result-printer/master/sample.png)

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 53% 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 ~13 days

Recently: every ~19 days

Total

103

Last Release

1917d ago

Major Versions

0.26.2 → 1.0.12020-02-16

0.26.3 → 1.2.02020-11-28

1.2.0 → 2.0.12020-11-28

2.0.1 → 3.02021-02-11

PHP version history (6 changes)v0.0.1PHP &gt;=5.4

0.6.0PHP ^7.1

0.8.0PHP ^7.0

1.2.0PHP &gt;=7.1

2PHP ^8

3.0PHP ^7.1 | ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6da00bb361f9beaa0dbd9577dd2b3c35089dd5d6ae9a3b57003d09f7737739b0?d=identicon)[ShawnMcCool](/maintainers/ShawnMcCool)

---

Top Contributors

[![mfour-merickson](https://avatars.githubusercontent.com/u/31225533?v=4)](https://github.com/mfour-merickson "mfour-merickson (161 commits)")[![mikeerickson](https://avatars.githubusercontent.com/u/183153?v=4)](https://github.com/mikeerickson "mikeerickson (118 commits)")[![dbudwin](https://avatars.githubusercontent.com/u/15161181?v=4)](https://github.com/dbudwin "dbudwin (3 commits)")[![travoltron](https://avatars.githubusercontent.com/u/2647090?v=4)](https://github.com/travoltron "travoltron (3 commits)")[![damiani](https://avatars.githubusercontent.com/u/357312?v=4)](https://github.com/damiani "damiani (2 commits)")[![gerardroche](https://avatars.githubusercontent.com/u/44148?v=4)](https://github.com/gerardroche "gerardroche (1 commits)")[![HWesterlund](https://avatars.githubusercontent.com/u/3448128?v=4)](https://github.com/HWesterlund "HWesterlund (1 commits)")[![IndraGunawan](https://avatars.githubusercontent.com/u/2704730?v=4)](https://github.com/IndraGunawan "IndraGunawan (1 commits)")[![jonz94](https://avatars.githubusercontent.com/u/16042676?v=4)](https://github.com/jonz94 "jonz94 (1 commits)")[![jyggen](https://avatars.githubusercontent.com/u/264300?v=4)](https://github.com/jyggen "jyggen (1 commits)")[![kbond](https://avatars.githubusercontent.com/u/127811?v=4)](https://github.com/kbond "kbond (1 commits)")[![mbrodala](https://avatars.githubusercontent.com/u/5037116?v=4)](https://github.com/mbrodala "mbrodala (1 commits)")[![petema3](https://avatars.githubusercontent.com/u/10506398?v=4)](https://github.com/petema3 "petema3 (1 commits)")[![peterlupu](https://avatars.githubusercontent.com/u/8885490?v=4)](https://github.com/peterlupu "peterlupu (1 commits)")[![rundef](https://avatars.githubusercontent.com/u/2675698?v=4)](https://github.com/rundef "rundef (1 commits)")[![vgarvardt](https://avatars.githubusercontent.com/u/173697?v=4)](https://github.com/vgarvardt "vgarvardt (1 commits)")[![AdrianHL](https://avatars.githubusercontent.com/u/16022257?v=4)](https://github.com/AdrianHL "AdrianHL (1 commits)")[![voku](https://avatars.githubusercontent.com/u/264695?v=4)](https://github.com/voku "voku (1 commits)")[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (1 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (1 commits)")

---

Tags

printercomposertestingphpunitpackageTDDresult-printer

### Embed Badge

![Health badge](/badges/shawnmccool-phpunit-result-printer/health.svg)

```
[![Health](https://phpackages.com/badges/shawnmccool-phpunit-result-printer/health.svg)](https://phpackages.com/packages/shawnmccool-phpunit-result-printer)
```

###  Alternatives

[codedungeon/phpunit-result-printer

PHPUnit Pretty Result Printer

1.2k8.8M397](/packages/codedungeon-phpunit-result-printer)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69417.9M510](/packages/spatie-phpunit-snapshot-assertions)[php-mock/php-mock-phpunit

Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.

1718.2M399](/packages/php-mock-php-mock-phpunit)[lmc/steward

Steward - makes Selenium WebDriver + PHPUnit testing easy and robust

222163.1k1](/packages/lmc-steward)

PHPackages © 2026

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