[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;
|
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)
|
||||||
|
@ -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" ],
|
||||||
|
Reference in New Issue
Block a user