Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPUnit 7 #3009

Merged
merged 1 commit into from
Mar 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
9 changes: 7 additions & 2 deletions tests/Doctrine/Tests/DbalPerformanceTestListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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[][]
*/
Expand All @@ -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)
Expand Down