Skip to content

Commit ca9f40f

Browse files
[Bridge/PhpUnit] fix looking for composer
1 parent e13658e commit ca9f40f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/simple-phpunit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ foreach ($defaultEnvs as $envName => $envValue) {
5757
}
5858
}
5959

60-
$COMPOSER = file_exists($COMPOSER = $oldPwd.'/composer.phar') || ($COMPOSER = rtrim('\\' === DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', `where.exe composer.phar`) : `which composer.phar 2> /dev/null`))
60+
$COMPOSER = file_exists($COMPOSER = $oldPwd.'/composer.phar')
61+
|| ($COMPOSER = rtrim('\\' === DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', `where.exe composer.phar`) : `which composer.phar 2> /dev/null`))
62+
|| ($COMPOSER = rtrim('\\' === DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', `where.exe composer`) : `which composer 2> /dev/null`))
6163
? $PHP.' '.escapeshellarg($COMPOSER)
6264
: 'composer';
6365

0 commit comments

Comments
 (0)