[PhpUnitBridge] Use trait instead of extending deprecated class
This commit is contained in:
parent
5867c7e090
commit
034e1de6e6
@ -11,8 +11,9 @@
|
||||
|
||||
namespace Symfony\Bridge\PhpUnit\Legacy;
|
||||
|
||||
use PHPUnit\Framework\BaseTestListener;
|
||||
use PHPUnit\Framework\Test;
|
||||
use PHPUnit\Framework\TestListener;
|
||||
use PHPUnit\Framework\TestListenerDefaultImplementation;
|
||||
|
||||
/**
|
||||
* CoverageListener adds `@covers <className>` on each test when possible to
|
||||
@ -22,8 +23,10 @@ use PHPUnit\Framework\Test;
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class CoverageListenerForV6 extends BaseTestListener
|
||||
class CoverageListenerForV6 implements TestListener
|
||||
{
|
||||
use TestListenerDefaultImplementation;
|
||||
|
||||
private $trait;
|
||||
|
||||
public function __construct(callable $sutFqcnResolver = null, $warningOnSutNotFound = false)
|
||||
|
@ -24,7 +24,7 @@
|
||||
"symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader"
|
||||
},
|
||||
"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": {
|
||||
"files": [ "bootstrap.php" ],
|
||||
|
Reference in New Issue
Block a user