Skip to content

Commit 3bfaa82

Browse files
authored
Merge pull request #3009 from carusogabriel/patch-1
PHPUnit 7
2 parents ad40374 + 8c1b053 commit 3bfaa82

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
},
1919
"require-dev": {
2020
"doctrine/coding-standard": "^3.0",
21-
"phpunit/phpunit": "^6.3",
21+
"phpunit/phpunit": "^7.0",
2222
"phpunit/phpunit-mock-objects": "!=3.2.4,!=3.2.5",
2323
"symfony/console": "^2.0.5||^3.0",
24-
"symfony/phpunit-bridge": "^3.3"
24+
"symfony/phpunit-bridge": "^3.4.5|^4.0.5"
2525
},
2626
"suggest": {
2727
"symfony/console": "For helpful console commands such as SQL execution and import of files."

tests/Doctrine/Tests/DbalPerformanceTestListener.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22

33
namespace Doctrine\Tests;
44

5+
use PHPUnit\Framework\Test;
6+
use PHPUnit\Framework\TestListener;
7+
use PHPUnit\Framework\TestListenerDefaultImplementation;
8+
59
/**
610
* Listener for collecting and reporting results of performance tests
711
*
812
* @author Bill Schaller
913
*/
10-
class DbalPerformanceTestListener extends \PHPUnit\Framework\BaseTestListener
14+
class DbalPerformanceTestListener implements TestListener
1115
{
16+
use TestListenerDefaultImplementation;
1217
/**
1318
* @var string[][]
1419
*/
@@ -17,7 +22,7 @@ class DbalPerformanceTestListener extends \PHPUnit\Framework\BaseTestListener
1722
/**
1823
* {@inheritdoc}
1924
*/
20-
public function endTest(\PHPUnit\Framework\Test $test, $time)
25+
public function endTest(Test $test, float $time) : void
2126
{
2227
// This listener only applies to performance tests.
2328
if ($test instanceof \Doctrine\Tests\DbalPerformanceTestCase)

0 commit comments

Comments
 (0)