Skip to content

Commit a964f37

Browse files
committed
minor symfony#24102 Create directories recursively in the PHPUnit bridge (stof)
This PR was merged into the 3.3 branch. Discussion ---------- Create directories recursively in the PHPUnit bridge | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a If the target directory is also missing its parent directory, we need to perform a recursive creation, otherwise we get weird failures later. Commits ------- 0caeeff Create directories recursively in the PHPUnit bridge
2 parents 703a84c + 0caeeff commit a964f37

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)