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