File tree 1 file changed +5
-0
lines changed
src/Symfony/Bridge/PhpUnit/bin
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,17 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
48
48
$ zip ->extractTo (getcwd ());
49
49
$ zip ->close ();
50
50
chdir ("phpunit- $ PHPUNIT_VERSION " );
51
+ $ prevRoot = getenv ('COMPOSER_ROOT_VERSION ' );
52
+ putenv ("COMPOSER_ROOT_VERSION= $ PHPUNIT_VERSION " );
51
53
passthru ("$ COMPOSER remove --no-update " .(getenv ('SYMFONY_PHPUNIT_REMOVE ' ) ?: 'phpspec/prophecy symfony/yaml ' ));
52
54
if (5.1 <= $ PHPUNIT_VERSION && $ PHPUNIT_VERSION < 5.4 ) {
53
55
passthru ("$ COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0 \"" );
54
56
}
55
57
passthru ("$ COMPOSER require --no-update symfony/phpunit-bridge \">=3.2@dev \"" );
56
58
passthru ("$ COMPOSER install --no-dev --prefer-dist --no-progress --ansi " , $ exit );
59
+ putenv ('COMPOSER_ROOT_VERSION ' .(false !== $ prevRoot ? '= ' .$ prevRoot : '' ));
60
+ if (false === $ prevRootVersion ) {
61
+ }
57
62
if ($ exit ) {
58
63
exit ($ exit );
59
64
}
You can’t perform that action at this time.
0 commit comments