Skip to content

Commit c02893a

Browse files
marcello-moenkemeyerfabpot
authored andcommitted
[PhpUnitBridge] Use trait instead of extending deprecated class
1 parent 6d6baff commit c02893a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Legacy/CoverageListenerForV6.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212
namespace Symfony\Bridge\PhpUnit\Legacy;
1313

14-
use PHPUnit\Framework\BaseTestListener;
1514
use PHPUnit\Framework\Test;
15+
use PHPUnit\Framework\TestListener;
16+
use PHPUnit\Framework\TestListenerDefaultImplementation;
1617

1718
/**
1819
* CoverageListener adds `@covers <className>` on each test when possible to
@@ -22,8 +23,10 @@
2223
*
2324
* @internal
2425
*/
25-
class CoverageListenerForV6 extends BaseTestListener
26+
class CoverageListenerForV6 implements TestListener
2627
{
28+
use TestListenerDefaultImplementation;
29+
2730
private $trait;
2831

2932
public function __construct(callable $sutFqcnResolver = null, $warningOnSutNotFound = false)

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader"
2525
},
2626
"conflict": {
27-
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0"
27+
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0|<6.4,>=6.0"
2828
},
2929
"autoload": {
3030
"files": [ "bootstrap.php" ],

0 commit comments

Comments
 (0)