Skip to content

Commit cc8b905

Browse files
committed
Merge branch 'release/1.0.4'
2 parents 214fe4e + 81db930 commit cc8b905

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
composer require sempro/phpunit-pretty-print --dev
1212
```
1313

14+
This package requires >=7.0.0 of phpunit. If you're running on version 6, please use version 1.0.3 of this package.
15+
1416
### Usage
1517
You can specify the printer to use on the phpunit command line:
1618

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"prefer-stable" : true,
88
"require": {
99
"php": ">=7.0.0",
10-
"phpunit/phpunit": ">=6.0.0"
10+
"phpunit/phpunit": ">=7.0.0"
1111
},
1212
"autoload": {
1313
"psr-4": {

src/PrettyPrinter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ public function startTest(Test $test): void
2424
$this->className = get_class($test);
2525
}
2626

27-
public function endTest(Test $test, $time): void
27+
public function endTest(Test $test, float $time): void
2828
{
2929
parent::endTest($test, $time);
3030

31-
$testMethodName = explode('::', \PHPUnit\Util\Test::describe($test));
31+
$testMethodName = \PHPUnit\Util\Test::describe($test);
3232

3333
// convert snakeCase method name to camelCase
3434
$testMethodName[1] = str_replace('_', '', ucwords($testMethodName[1], '_'));

0 commit comments

Comments
 (0)