Unverified Commit 3bfaa821 authored by Marco Pivetta's avatar Marco Pivetta Committed by GitHub

Merge pull request #3009 from carusogabriel/patch-1

PHPUnit 7
parents ad403747 8c1b0537
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
}, },
"require-dev": { "require-dev": {
"doctrine/coding-standard": "^3.0", "doctrine/coding-standard": "^3.0",
"phpunit/phpunit": "^6.3", "phpunit/phpunit": "^7.0",
"phpunit/phpunit-mock-objects": "!=3.2.4,!=3.2.5", "phpunit/phpunit-mock-objects": "!=3.2.4,!=3.2.5",
"symfony/console": "^2.0.5||^3.0", "symfony/console": "^2.0.5||^3.0",
"symfony/phpunit-bridge": "^3.3" "symfony/phpunit-bridge": "^3.4.5|^4.0.5"
}, },
"suggest": { "suggest": {
"symfony/console": "For helpful console commands such as SQL execution and import of files." "symfony/console": "For helpful console commands such as SQL execution and import of files."
......
...@@ -2,13 +2,18 @@ ...@@ -2,13 +2,18 @@
namespace Doctrine\Tests; namespace Doctrine\Tests;
use PHPUnit\Framework\Test;
use PHPUnit\Framework\TestListener;
use PHPUnit\Framework\TestListenerDefaultImplementation;
/** /**
* Listener for collecting and reporting results of performance tests * Listener for collecting and reporting results of performance tests
* *
* @author Bill Schaller * @author Bill Schaller
*/ */
class DbalPerformanceTestListener extends \PHPUnit\Framework\BaseTestListener class DbalPerformanceTestListener implements TestListener
{ {
use TestListenerDefaultImplementation;
/** /**
* @var string[][] * @var string[][]
*/ */
...@@ -17,7 +22,7 @@ class DbalPerformanceTestListener extends \PHPUnit\Framework\BaseTestListener ...@@ -17,7 +22,7 @@ class DbalPerformanceTestListener extends \PHPUnit\Framework\BaseTestListener
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function endTest(\PHPUnit\Framework\Test $test, $time) public function endTest(Test $test, float $time) : void
{ {
// This listener only applies to performance tests. // This listener only applies to performance tests.
if ($test instanceof \Doctrine\Tests\DbalPerformanceTestCase) if ($test instanceof \Doctrine\Tests\DbalPerformanceTestCase)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment