|
135 | 135 | 'COMPOSER' => 'composer.json', |
136 | 136 | 'COMPOSER_VENDOR_DIR' => 'vendor', |
137 | 137 | 'COMPOSER_BIN_DIR' => 'bin', |
| 138 | + 'COMPOSER_NO_INTERACTION' => '1', |
138 | 139 | 'SYMFONY_SIMPLE_PHPUNIT_BIN_DIR' => __DIR__, |
139 | 140 | ]; |
140 | 141 |
|
|
231 | 232 | @copy("$PHPUNIT_VERSION_DIR/phpunit.xsd", 'phpunit.xsd'); |
232 | 233 | chdir("$PHPUNIT_VERSION_DIR"); |
233 | 234 | if ($SYMFONY_PHPUNIT_REMOVE) { |
234 | | - $passthruOrFail("$COMPOSER remove --no-update --no-interaction ".$SYMFONY_PHPUNIT_REMOVE); |
| 235 | + $passthruOrFail("$COMPOSER remove --no-update ".$SYMFONY_PHPUNIT_REMOVE); |
235 | 236 | } |
236 | 237 | if ($SYMFONY_PHPUNIT_REQUIRE) { |
237 | | - $passthruOrFail("$COMPOSER require --no-update --no-interaction ".$SYMFONY_PHPUNIT_REQUIRE); |
| 238 | + $passthruOrFail("$COMPOSER require --no-update ".$SYMFONY_PHPUNIT_REQUIRE); |
238 | 239 | } |
239 | 240 | if (5.1 <= $PHPUNIT_VERSION && $PHPUNIT_VERSION < 5.4) { |
240 | | - $passthruOrFail("$COMPOSER require --no-update --no-interaction phpunit/phpunit-mock-objects \"~3.1.0\""); |
| 241 | + $passthruOrFail("$COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0\""); |
241 | 242 | } |
242 | 243 |
|
243 | 244 | if (preg_match('{\^((\d++\.)\d++)[\d\.]*$}', $info['requires']['php'], $phpVersion) && version_compare($phpVersion[2].'99', \PHP_VERSION, '<')) { |
|
253 | 254 | if (realpath($p) === realpath($path)) { |
254 | 255 | $path = $p; |
255 | 256 | } |
256 | | - $passthruOrFail("$COMPOSER require --no-update --no-interaction symfony/phpunit-bridge \"*@dev\""); |
| 257 | + $passthruOrFail("$COMPOSER require --no-update symfony/phpunit-bridge \"*@dev\""); |
257 | 258 | $passthruOrFail("$COMPOSER config repositories.phpunit-bridge path ".escapeshellarg(str_replace('/', \DIRECTORY_SEPARATOR, $path))); |
258 | 259 | if ('\\' === \DIRECTORY_SEPARATOR) { |
259 | 260 | file_put_contents('composer.json', preg_replace('/^( {8})"phpunit-bridge": \{$/m', "$0\n$1 ".'"options": {"symlink": false},', file_get_contents('composer.json'))); |
260 | 261 | } |
261 | 262 | } else { |
262 | | - $passthruOrFail("$COMPOSER require --no-update --no-interaction symfony/phpunit-bridge \"*\""); |
| 263 | + $passthruOrFail("$COMPOSER require --no-update symfony/phpunit-bridge \"*\""); |
263 | 264 | } |
264 | 265 | $prevRoot = getenv('COMPOSER_ROOT_VERSION'); |
265 | 266 | putenv("COMPOSER_ROOT_VERSION=$PHPUNIT_VERSION.99"); |
|
0 commit comments