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

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

codedungeon/phpunit-result-printer
==================================

PHPUnit Pretty Result Printer

0.32.0(4y ago)1.2k8.8M↑11.2%69[8 issues](https://github.com/mikeerickson/phpunit-pretty-result-printer/issues)[5 PRs](https://github.com/mikeerickson/phpunit-pretty-result-printer/pulls)20MITPHPPHP ^7.1 | ^8.0

Since Jul 18Pushed 2y ago19 watchersCompare

[ Source](https://github.com/mikeerickson/phpunit-pretty-result-printer)[ Packagist](https://packagist.org/packages/codedungeon/phpunit-result-printer)[ GitHub Sponsors](https://github.com/feross)[ GitHub Sponsors](https://github.com/standard)[ RSS](/packages/codedungeon-phpunit-result-printer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (112)Used By (20)

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

56

—

FairBetter than 98% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity68

Solid adoption and visibility

Community51

Growing community involvement

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 52.1% 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 ~16 days

Recently: every ~130 days

Total

102

Last Release

1543d ago

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

0.6.0PHP ^7.1

0.8.0PHP ^7.0

0.30.0PHP ^7.1 | ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5056754?v=4)[codedungeon](/maintainers/codedungeon)[@codedungeon](https://github.com/codedungeon)

---

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 (122 commits)")[![travoltron](https://avatars.githubusercontent.com/u/2647090?v=4)](https://github.com/travoltron "travoltron (3 commits)")[![dbudwin](https://avatars.githubusercontent.com/u/15161181?v=4)](https://github.com/dbudwin "dbudwin (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)")[![mattstauffer](https://avatars.githubusercontent.com/u/151829?v=4)](https://github.com/mattstauffer "mattstauffer (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)")

---

Tags

hacktoberfesthacktoberfest2020printercomposertestingphpunitpackageTDDresult-printer

### Embed Badge

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

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

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

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

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69617.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)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)

PHPackages © 2026

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