https://github.com/indentno/phpunit-pretty-print
✅ Make your PHPUnit output beautiful
https://github.com/indentno/phpunit-pretty-print
php php7 phpunit phpunit-pretty-print pretty-print testing
Last synced: about 1 month ago
JSON representation
✅ Make your PHPUnit output beautiful
- Host: GitHub
- URL: https://github.com/indentno/phpunit-pretty-print
- Owner: indentno
- License: mit
- Created: 2017-12-01T11:03:19.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2023-03-07T21:46:27.000Z (about 2 years ago)
- Last Synced: 2025-04-03T19:14:50.897Z (about 2 months ago)
- Topics: php, php7, phpunit, phpunit-pretty-print, pretty-print, testing
- Language: PHP
- Homepage: https://packagist.org/packages/sempro/phpunit-pretty-print
- Size: 1.29 MB
- Stars: 187
- Watchers: 7
- Forks: 25
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# phpunit-pretty-print
> ✅ Make your PHPUnit output beautiful[](https://travis-ci.com/sempro/phpunit-pretty-print)
[](https://packagist.org/packages/sempro/phpunit-pretty-print)
[](https://packagist.org/packages/sempro/phpunit-pretty-print)
[](http://makeapullrequest.com)
[](http://www.php-fig.org/psr/psr-2/)### Installation
```bash
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
You can specify the printer to use on the phpunit command line:For PhpUnit < 9, use the following:
```bash
php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinter' tests/
```
For PhpUnit >= 9, use the following:
```bash
php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9' tests/
```Optionally, you can add it to your project's `phpunit.xml` file instead:
```xml
```
### 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.
```xml
```
### License
MIT © [Sempro AS](http://www.sempro.no)