Skip to content

Commit 2155067

Browse files
[Bridge/PhpUnit] fix the fix
1 parent c117424 commit 2155067

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/simple-phpunit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
6060

6161
@mkdir($PHPUNIT_DIR, 0777, true);
6262
chdir($PHPUNIT_DIR);
63+
if (file_exists("phpunit-$PHPUNIT_VERSION")) {
64+
passthru(sprintf('\\' === DIRECTORY_SEPARATOR ? '(del /S /F /Q %s & rmdir %1$s) >nul': 'rm -rf %s', "phpunit-$PHPUNIT_VERSION"));
65+
}
6366
passthru("$COMPOSER create-project --no-install --prefer-dist --no-scripts --no-plugins --no-progress --ansi phpunit/phpunit phpunit-$PHPUNIT_VERSION \"$PHPUNIT_VERSION.*\"");
6467
chdir("phpunit-$PHPUNIT_VERSION");
6568
if ($SYMFONY_PHPUNIT_REMOVE) {

0 commit comments

Comments
 (0)