8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f4a0b6 commit 77e643dCopy full SHA for 77e643d
src/Symfony/Bridge/PhpUnit/bin/simple-phpunit
@@ -26,8 +26,13 @@ if (PHP_VERSION_ID >= 70200) {
26
$PHPUNIT_VERSION = '4.8';
27
}
28
29
+if ('composer.json' !== $COMPOSER_JSON = getenv('COMPOSER') ?: 'composer.json') {
30
+ putenv('COMPOSER=composer.json');
31
+ $_SERVER['COMPOSER'] = $_ENV['COMPOSER'] = 'composer.json';
32
+}
33
+
34
$root = __DIR__;
-while (!file_exists($root.'/composer.json') || file_exists($root.'/DeprecationErrorHandler.php')) {
35
+while (!file_exists($root.'/'.$COMPOSER_JSON) || file_exists($root.'/DeprecationErrorHandler.php')) {
36
if ($root === dirname($root)) {
37
break;
38
0 commit comments