8000 [PhpUnitBridge] Use trait instead of extending deprecated class · symfony/symfony@034e1de · GitHub
[go: up one dir, main page]

Skip to content

Commit 034e1de

Browse files
marcello-moenkemeyerfabpot
authored andcommitted
[PhpUnitBridge] Use trait instead of extending deprecated class
1 parent 5867c7e commit 034e1de

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines change 10000 d

src/Symfony/Bridge/PhpUnit/Legacy/CoverageListenerForV6.php

Lines changed: 5 additions & 2 deletions
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)

src/Symfony/Bridge/PhpUnit/composer.json

Lines changed: 1 addition & 1 deletion
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)
0