Skip to content

Commit

Permalink
Merge branch 'release/1.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ventrec committed Sep 11, 2020
2 parents 6f0e99d + 716ba25 commit ab64b50
Show file tree
Hide file tree
Showing 10 changed files with 719 additions and 508 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: php

php:
- 7.2
- 7.4

before_script: composer install

Expand All @@ -13,4 +13,4 @@ script:
notifications:
email:
on_success: never
on_failure: never
on_failure: never
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,30 @@ 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
<phpunit
bootstrap="bootstrap.php"
colors="true"
printerClass="Sempro\PHPUnitPrettyPrinter\PrettyPrinter">
printerClass="Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9">
```

<img src="https://raw.githubusercontent.com/Sempro/phpunit-pretty-print/master/preview.gif" width="100%" alt="phpunit-pretty-print">
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "sempro/phpunit-pretty-print",
"version": "1.2.2",
"version": "1.3.0",
"description": "Prettify PHPUnit output",
"type": "library",
"license": "MIT",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.1.0",
"phpunit/phpunit": ">=7.0.0 <9.0.0"
"phpunit/phpunit": ">=7.0.0 ^9.0.0"
},
"autoload": {
"psr-4": {
"Sempro\\PHPUnitPrettyPrinter\\": "src/"
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.15"
"friendsofphp/php-cs-fixer": "^2.16"
}
}
}
Loading

0 comments on commit ab64b50

Please sign in to comment.