Skip to content

Commit f4fde1e

Browse files
[PhpUnitBridge] keep compat with composer 1.0
1 parent c9db102 commit f4fde1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/simple-phpunit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
101101
}
102102
$prevRoot = getenv('COMPOSER_ROOT_VERSION');
103103
putenv("COMPOSER_ROOT_VERSION=$PHPUNIT_VERSION.99");
104-
$exit = proc_close(proc_open("$COMPOSER install --no-dev --prefer-dist --no-suggest --no-progress --ansi", array(), $p, getcwd(), null, array('bypass_shell' => true)));
104+
// --no-suggest is not in the list to keep compat with composer 1.0, which is shipped with Ubuntu 16.04LTS
105+
$exit = proc_close(proc_open("$COMPOSER install --no-dev --prefer-dist --no-progress --ansi", array(), $p, getcwd(), null, array('bypass_shell' => true)));
105106
putenv('COMPOSER_ROOT_VERSION'.(false !== $prevRoot ? '='.$prevRoot : ''));
106107
if ($exit) {
107108
exit($exit);

0 commit comments

Comments
 (0)