Skip to content

Commit

Permalink
PHPUnit updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Feb 3, 2018
1 parent 6508ca8 commit 4a3bfbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

],
"require-dev": {
"phpunit/phpunit": "^6.3.0"
"phpunit/phpunit": "^7.0.0"
},
"autoload": {
"psr-4": {
Expand Down
10 changes: 6 additions & 4 deletions test/unit/TestListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@

use ClassWithExplicitGlobalNamespace;
use ClassWithNoNamespace;
use PHPUnit\Framework\BaseTestListener;
use PHPUnit\Framework\Test;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\TestListener as BaseTestListener;
use PHPUnit\Framework\TestListenerDefaultImplementation;
use PHPUnit\Framework\TestSuite;
use Roave\BetterReflectionTest\Fixture\ExampleClass;
use Roave\BetterReflectionTest\Fixture\Methods;
use Roave\BetterReflectionTest\FixtureOther\AnotherClass;
use function class_exists;

class TestListener extends BaseTestListener
class TestListener implements BaseTestListener
{
use TestListenerDefaultImplementation;

/**
* @var \PHPUnit\Framework\TestSuite|null
*/
Expand Down Expand Up @@ -50,11 +53,10 @@ class_exists($className, false),
/**
* Ensure the fixture classes have not actually been loaded (where applicable)
*
* @param float $time
* @throws \PHPUnit\Framework\AssertionFailedError
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint
*/
public function endTest(Test $test, $time) : void
public function endTest(Test $test, float $time) : void
{
// Only test PHPUnit tests (i.e. no .phpt tests or anything else unexpected)
if (! ($test instanceof TestCase)) {
Expand Down

0 comments on commit 4a3bfbf

Please sign in to comment.