Skip to content

Commit ab64b50

Browse files
committed
Merge branch 'release/1.3.0'
2 parents 6f0e99d + 716ba25 commit ab64b50

File tree

10 files changed

+719
-508
lines changed

10 files changed

+719
-508
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: php
22

33
php:
4-
- 7.2
4+
- 7.4
55

66
before_script: composer install
77

@@ -13,4 +13,4 @@ script:
1313
notifications:
1414
email:
1515
on_success: never
16-
on_failure: never
16+
on_failure: never

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,30 @@ composer require sempro/phpunit-pretty-print --dev
1414
```
1515

1616
This package requires `>=7.0.0` of PHPUnit.
17+
1718
If you're running on `6.x`, please use version `1.0.3`.
1819

20+
If you are running on `9.x` use the `\Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9` class
21+
1922
### Usage
2023
You can specify the printer to use on the phpunit command line:
2124

25+
For PhpUnit < 9, use the following:
2226
```bash
2327
php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinter' tests/
2428
```
29+
For PhpUnit >= 9, use the following:
30+
```bash
31+
php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9' tests/
32+
```
2533

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

28-
2936
```xml
3037
<phpunit
3138
bootstrap="bootstrap.php"
3239
colors="true"
33-
printerClass="Sempro\PHPUnitPrettyPrinter\PrettyPrinter">
40+
printerClass="Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9">
3441
```
3542

3643
<img src="https://raw.githubusercontent.com/Sempro/phpunit-pretty-print/master/preview.gif" width="100%" alt="phpunit-pretty-print">

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"name": "sempro/phpunit-pretty-print",
3-
"version": "1.2.2",
3+
"version": "1.3.0",
44
"description": "Prettify PHPUnit output",
55
"type": "library",
66
"license": "MIT",
77
"minimum-stability": "dev",
88
"prefer-stable": true,
99
"require": {
1010
"php": ">=7.1.0",
11-
"phpunit/phpunit": ">=7.0.0 <9.0.0"
11+
"phpunit/phpunit": ">=7.0.0 ^9.0.0"
1212
},
1313
"autoload": {
1414
"psr-4": {
1515
"Sempro\\PHPUnitPrettyPrinter\\": "src/"
1616
}
1717
},
1818
"require-dev": {
19-
"friendsofphp/php-cs-fixer": "^2.15"
19+
"friendsofphp/php-cs-fixer": "^2.16"
2020
}
21-
}
21+
}

0 commit comments

Comments
 (0)