8000 [Bridge\PhpUnit] Fix infinite loop when running isolated method · symfony/symfony@e07c2f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit e07c2f1

Browse files
[Bridge\PhpUnit] Fix infinite loop when running isolated method
1 parent 7ffd22b commit e07c2f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
8181
8282
define('PHPUNIT_COMPOSER_INSTALL', __DIR__.'/vendor/autoload.php');
8383
require PHPUNIT_COMPOSER_INSTALL;
84+
if (class_exists('PHPUnit_Util_Blacklist')) {
85+
PHPUnit_Util_Blacklist::$blacklistedClassNames['\PHPUnit\Framework\TestCase'] = 3;
86+
} else {
87+
PHPUnit\Util\Blacklist::$blacklistedClassNames['\PHPUnit\Framework\TestCase'] = 3;
88+
}
8489
Symfony\Bridge\PhpUnit\TextUI\Command::main();
8590

8691
EOPHP

0 commit comments

Comments
 (0)
0