diff --git a/composer.json b/composer.json index 2821fb9fd5a..35e7f3bb741 100644 --- a/composer.json +++ b/composer.json @@ -18,10 +18,10 @@ }, "require-dev": { "doctrine/coding-standard": "^3.0", - "phpunit/phpunit": "^6.3", + "phpunit/phpunit": "^7.0", "phpunit/phpunit-mock-objects": "!=3.2.4,!=3.2.5", "symfony/console": "^2.0.5||^3.0", - "symfony/phpunit-bridge": "^3.3" + "symfony/phpunit-bridge": "^3.4.5|^4.0.5" }, "suggest": { "symfony/console": "For helpful console commands such as SQL execution and import of files." diff --git a/tests/Doctrine/Tests/DbalPerformanceTestListener.php b/tests/Doctrine/Tests/DbalPerformanceTestListener.php index 61b01587bba..17562a561d6 100644 --- a/tests/Doctrine/Tests/DbalPerformanceTestListener.php +++ b/tests/Doctrine/Tests/DbalPerformanceTestListener.php @@ -2,13 +2,18 @@ namespace Doctrine\Tests; +use PHPUnit\Framework\Test; +use PHPUnit\Framework\TestListener; +use PHPUnit\Framework\TestListenerDefaultImplementation; + /** * Listener for collecting and reporting results of performance tests * * @author Bill Schaller */ -class DbalPerformanceTestListener extends \PHPUnit\Framework\BaseTestListener +class DbalPerformanceTestListener implements TestListener { + use TestListenerDefaultImplementation; /** * @var string[][] */ @@ -17,7 +22,7 @@ class DbalPerformanceTestListener extends \PHPUnit\Framework\BaseTestListener /** * {@inheritdoc} */ - public function endTest(\PHPUnit\Framework\Test $test, $time) + public function endTest(Test $test, float $time) : void { // This listener only applies to performance tests. if ($test instanceof \Doctrine\Tests\DbalPerformanceTestCase)