Skip to content

Commit

Permalink
Merge branch 'release/1.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
ventrec committed Feb 13, 2018
2 parents 214fe4e + 81db930 commit cc8b905
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
composer require sempro/phpunit-pretty-print --dev
```

This package requires >=7.0.0 of phpunit. If you're running on version 6, please use version 1.0.3 of this package.

### Usage
You can specify the printer to use on the phpunit command line:

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"prefer-stable" : true,
"require": {
"php": ">=7.0.0",
"phpunit/phpunit": ">=6.0.0"
"phpunit/phpunit": ">=7.0.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions src/PrettyPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ public function startTest(Test $test): void
$this->className = get_class($test);
}

public function endTest(Test $test, $time): void
public function endTest(Test $test, float $time): void
{
parent::endTest($test, $time);

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

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

0 comments on commit cc8b905

Please sign in to comment.