8000 [PhpUnitBrige] Fix current failures · symfony/symfony@73df9cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 73df9cd

Browse files
[PhpUnitBrige] Fix current failures
1 parent fcf8b33 commit 73df9cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
4848
$zip->extractTo(getcwd());
4949
$zip->close();
5050
chdir("phpunit-$PHPUNIT_VERSION");
51-
$prevRoot = getenv('COMPOSER_ROOT_VERSION');
52-
putenv("COMPOSER_ROOT_VERSION=$PHPUNIT_VERSION");
53-
proc_close(proc_open("$COMPOSER remove --no-update ".(getenv('SYMFONY_PHPUNIT_REMOVE') ?: 'phpspec/prophecy symfony/yaml'), array(), $p));
51+
passthru("$COMPOSER remove --no-update ".(getenv('SYMFONY_PHPUNIT_REMOVE') ?: 'phpspec/prophecy symfony/yaml'));
5452
if (5.1 <= $PHPUNIT_VERSION && $PHPUNIT_VERSION < 5.4) {
5553
passthru("$COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0\"");
5654
}
57-
proc_close(proc_open("$COMPOSER require --no-update symfony/phpunit-bridge \">=3.2@dev\"", array(), $p));
58-
$exit = proc_close(proc_open("$COMPOSER install --no-dev --prefer-dist --no-progress --ansi", array(), $p));
55+
passthru("$COMPOSER require --no-update symfony/phpunit-bridge \">=3.2@dev\"");
56+
$prevRoot = getenv('COMPOSER_ROOT_VERSION');
57+
putenv("COMPOSER_ROOT_VERSION=$PHPUNIT_VERSION");
58+
$exit = proc_close(proc_open("$COMPOSER install --no-dev --prefer-dist --no-progress --ansi", array(), $p, getcwd(), null, array('bypass_shell' => true)));
5959
putenv('COMPOSER_ROOT_VERSION'.(false !== $prevRoot ? '='.$prevRoot : ''));
6060
if ($exit) {
6161
exit($exit);

0 commit comments

Comments
 (0)
0