Skip to content

Commit 4ed67a6

Browse files
bug symfony#24498 [Bridge\PhpUnit] Fix infinite loop when running isolated method (nicolas-grekas)
This PR was merged into the 3.3 branch. Discussion ---------- [Bridge\PhpUnit] Fix infinite loop when running isolated method | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - May unlock symfony#23003 (ping @paul-m) And required to make symfony#23711 pass. Commits ------- e07c2f1 [Bridge\PhpUnit] Fix infinite loop when running isolated method
2 parents 7ffd22b + e07c2f1 commit 4ed67a6

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)