File tree 2 files changed +9
-3
lines changed
src/Symfony/Bridge/PhpUnit
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,14 @@ public function __construct(array $mockedNamespaces = array())
47
47
{
48
48
if (class_exists ('PHPUnit_Util_Blacklist ' )) {
49
49
\PHPUnit_Util_Blacklist::$ blacklistedClassNames ['\Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerTrait ' ] = 2 ;
50
- } else {
51
- Blacklist::$ blacklistedClassNames ['\Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerTrait ' ] = 2 ;
50
+ } elseif (method_exists (Blacklist::class, 'addDirectory ' )) {
51
+ Blacklist::addDirectory ('\Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerTrait ' );
52
+ } elseif (class_exists (Blacklist::class)) {
53
+ if (method_exists (Blacklist::class, 'addDirectory ' )) {
54
+ Blacklist::addDirectory ($ className );
55
+ } else {
56
+ Blacklist::$ blacklistedClassNames [$ className ] = 2 ;
57
+ }
52
58
}
53
59
54
60
$ warn = false ;
Original file line number Diff line number Diff line change 24
24
"symfony/debug" : " For tracking deprecated interfaces usages at runtime with DebugClassLoader"
25
25
},
26
26
"conflict" : {
27
- "phpunit/phpunit" : " <4.8.35|<5.4.3,>=5.0|<6.4,>=6.0"
27
+ "phpunit/phpunit" : " <4.8.35|<5.4.3,>=5.0|<6.4,>=6.0|9.1.2 "
28
28
},
29
29
"autoload" : {
30
30
"files" : [ " bootstrap.php" ],
You can’t perform that action at this time.
0 commit comments