File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 22
33namespace MyBuilder \PhpunitAccelerator ;
44
5- use PHPUnit \Framework \BaseTestListener ;
5+ use PHPUnit \Framework \TestListener as BaseTestListener ;
6+ use PHPUnit \Framework \TestListenerDefaultImplementation ;
67
7- if (!interface_exists ('\PHPUnit\Framework\Test ' )) {
8- class_alias ('\PHPUnit_Framework_Test ' , '\PHPUnit\Framework\Test ' );
9- }
10-
11- class TestListener extends BaseTestListener
8+ class TestListener implements BaseTestListener
129{
10+ use TestListenerDefaultImplementation;
11+
1312 private $ ignorePolicy ;
1413
1514 const PHPUNIT_PROPERTY_PREFIX = 'PHPUnit_ ' ;
@@ -19,7 +18,7 @@ public function __construct(IgnoreTestPolicy $ignorePolicy = null)
1918 $ this ->ignorePolicy = ($ ignorePolicy ) ?: new NeverIgnoreTestPolicy ();
2019 }
2120
22- public function endTest (\PHPUnit \Framework \Test $ test , $ time )
21+ public function endTest (\PHPUnit \Framework \Test $ test , float $ time ): void
2322 {
2423 $ testReflection = new \ReflectionObject ($ test );
2524
You can’t perform that action at this time.
0 commit comments