We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fdcc467 + 2155067 commit 473fb45Copy full SHA for 473fb45
bin/simple-phpunit
@@ -89,6 +89,9 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
89
90
@mkdir($PHPUNIT_DIR, 0777, true);
91
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
+ }
95
passthru("$COMPOSER create-project --no-install --prefer-dist --no-scripts --no-plugins --no-progress --ansi phpunit/phpunit phpunit-$PHPUNIT_VERSION \"$PHPUNIT_VERSION.*\"");
96
chdir("phpunit-$PHPUNIT_VERSION");
97
if ($SYMFONY_PHPUNIT_REMOVE) {
0 commit comments