[PhpUnitBridge] Use trait instead of extending deprecated class

This commit is contained in:
Marcello Mönkemeyer 2020-02-19 14:20:42 +00:00 committed by Fabien Potencier
parent 5867c7e090
commit 034e1de6e6
2 changed files with 6 additions and 3 deletions

View File

@ -11,8 +11,9 @@
namespace Symfony\Bridge\PhpUnit\Legacy; namespace Symfony\Bridge\PhpUnit\Legacy;
use PHPUnit\Framework\BaseTestListener;
use PHPUnit\Framework\Test; use PHPUnit\Framework\Test;
use PHPUnit\Framework\TestListener;
use PHPUnit\Framework\TestListenerDefaultImplementation;
/** /**
* CoverageListener adds `@covers <className>` on each test when possible to * CoverageListener adds `@covers <className>` on each test when possible to
@ -22,8 +23,10 @@ use PHPUnit\Framework\Test;
* *
* @internal * @internal
*/ */
class CoverageListenerForV6 extends BaseTestListener class CoverageListenerForV6 implements TestListener
{ {
use TestListenerDefaultImplementation;
private $trait; private $trait;
public function __construct(callable $sutFqcnResolver = null, $warningOnSutNotFound = false) public function __construct(callable $sutFqcnResolver = null, $warningOnSutNotFound = false)

View File

@ -24,7 +24,7 @@
"symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader" "symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader"
}, },
"conflict": { "conflict": {
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0" "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0|<6.4,>=6.0"
}, },
"autoload": { "autoload": {
"files": [ "bootstrap.php" ], "files": [ "bootstrap.php" ],