File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/Symfony/Bridge/PhpUnit/Legacy Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,12 @@ public function __construct(array $mockedNamespaces = array())
49
49
\PHPUnit_Util_Blacklist::$ blacklistedClassNames ['\Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerTrait ' ] = 2 ;
50
50
} elseif (method_exists (Blacklist::class, 'addDirectory ' )) {
51
51
Blacklist::addDirectory ('\Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerTrait ' );
52
- } else {
53
- Blacklist::$ blacklistedClassNames ['\Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerTrait ' ] = 2 ;
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
+ }
54
58
}
55
59
56
60
$ warn = false ;
You can’t perform that action at this time.
0 commit comments