8000 [PhpUnitBridge] Also search for composer.phar in git root folder · symfony/symfony@97fd204 · GitHub
[go: up one dir, main page]

Skip to content

Commit 97fd204

Browse files
MaPePeRnicolas-grekas
authored andcommitted
[PhpUnitBridge] Also search for composer.phar in git root folder
1 parent 301ec49 commit 97fd204

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
$COMPOSER = file_exists($COMPOSER = $oldPwd.'/composer.phar')
100100
|| ($COMPOSER = rtrim('\\' === DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', `where.exe composer.phar`) : `which composer.phar 2> /dev/null`))
101101
|| ($COMPOSER = rtrim('\\' === DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', `where.exe composer`) : `which composer 2> /dev/null`))
102+
|| file_exists($COMPOSER = rtrim('\\' === DIRECTORY_SEPARATOR ? `git rev-parse --show-toplevel 2> NUL` : `git rev-parse --show-toplevel 2> /dev/null`).DIRECTORY_SEPARATOR.'composer.phar')
102103
? $PHP.' '.escapeshellarg($COMPOSER)
103104
: 'composer';
104105

0 commit comments

Comments
 (0)
0