Skip to content

Commit 9215cc5

Browse files
Merge branch '3.4' into 4.3
* 3.4: [Bridge/PhpUnit] fix looking for composer
2 parents 17c6e70 + ca9f40f commit 9215cc5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/simple-phpunit.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,12 @@
9191
}
9292
}
9393

94-
$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`))
94+
$COMPOSER = file_exists($COMPOSER = $oldPwd.'/composer.phar')
95+
|| ($COMPOSER = rtrim('\\' === DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', `where.exe composer.phar`) : `which composer.phar 2> /dev/null`))
96+
|| ($COMPOSER = rtrim('\\' === DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', `where.exe composer`) : `which composer 2> /dev/null`))
9597
? $PHP.' '.escapeshellarg($COMPOSER)
9698
: 'composer';
9799

98-
99100
$SYMFONY_PHPUNIT_REMOVE = $getEnvVar('SYMFONY_PHPUNIT_REMOVE', 'phpspec/prophecy'.($PHPUNIT_VERSION < 6.0 ? ' symfony/yaml': ''));
100101

101102
if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__FILE__)."\n".$SYMFONY_PHPUNIT_REMOVE !== @file_get_contents("$PHPUNIT_DIR/.$PHPUNIT_VERSION.md5")) {

0 commit comments

Comments
 (0)