Skip to content

Commit 0caeeff

Browse files
committed
Create directories recursively in the PHPUnit bridge
1 parent 703a84c commit 0caeeff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $COMPOSER = file_exists($COMPOSER = $oldPwd.'/composer.phar') || ($COMPOSER = rt
4141
if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__FILE__)."\n".getenv('SYMFONY_PHPUNIT_REMOVE') !== @file_get_contents("$PHPUNIT_DIR/.$PHPUNIT_VERSION.md5")) {
4242
// Build a standalone phpunit without symfony/yaml nor prophecy by default
4343

44-
@mkdir($PHPUNIT_DIR);
44+
@mkdir($PHPUNIT_DIR, 0777, true);
4545
chdir($PHPUNIT_DIR);
4646
if (file_exists("phpunit-$PHPUNIT_VERSION")) {
4747
passthru(sprintf('\\' === DIRECTORY_SEPARATOR ? '(del /S /F /Q %s & rmdir %1$s) >nul': 'rm -rf %s', "phpunit-$PHPUNIT_VERSION"));

0 commit comments

Comments
 (0)