Skip to content

Commit 473fb45

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: fix authorization checker variable name [Routing] Remove duplicate schemes and methods for invokable controllers [Bridge/PhpUnit] fix the fix
2 parents fdcc467 + 2155067 commit 473fb45

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
@@ -89,6 +89,9 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
8989

9090
@mkdir($PHPUNIT_DIR, 0777, true);
9191
chdir($PHPUNIT_DIR);
92+
if (file_exists("phpunit-$PHPUNIT_VERSION")) {
93+
passthru(sprintf('\\' === DIRECTORY_SEPARATOR ? '(del /S /F /Q %s & rmdir %1$s) >nul': 'rm -rf %s', "phpunit-$PHPUNIT_VERSION"));
94+
}
9295
passthru("$COMPOSER create-project --no-install --prefer-dist --no-scripts --no-plugins --no-progress --ansi phpunit/phpunit phpunit-$PHPUNIT_VERSION \"$PHPUNIT_VERSION.*\"");
9396
chdir("phpunit-$PHPUNIT_VERSION");
9497
if ($SYMFONY_PHPUNIT_REMOVE) {

0 commit comments

Comments
 (0)