Skip to content

Commit 88122d6

Browse files
committed
Merge branch '6.2' into 6.3
* 6.2: fix Doctrine deprecations fix merge Fix Doctrine deprecations [Validator] Remove internal from methods on non-internal interfaces [PhpUnitBridge] Fix support for the NO_COLOR env var
2 parents 057a9b5 + c24bec9 commit 88122d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/simple-phpunit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ class_exists(\SymfonyExcludeListSimplePhpunit::class, false) && PHPUnit\Util\Bla
373373
}
374374
}
375375

376-
$cmd[0] = sprintf('%s %s --colors=always', $PHP, escapeshellarg("$PHPUNIT_DIR/$PHPUNIT_VERSION_DIR/phpunit"));
376+
$cmd[0] = sprintf('%s %s --colors=%s', $PHP, escapeshellarg("$PHPUNIT_DIR/$PHPUNIT_VERSION_DIR/phpunit"), false === $getEnvVar('NO_COLOR') ? 'always' : 'never');
377377
$cmd = str_replace('%', '%%', implode(' ', $cmd)).' %1$s';
378378

379379
if ('\\' === \DIRECTORY_SEPARATOR) {
@@ -440,7 +440,7 @@ class SymfonyExcludeListSimplePhpunit
440440
{
441441
}
442442
}
443-
array_splice($argv, 1, 0, ['--colors=always']);
443+
array_splice($argv, 1, 0, ['--colors='.(false === $getEnvVar('NO_COLOR') ? 'always' : 'never')]);
444444
$_SERVER['argv'] = $argv;
445445
$_SERVER['argc'] = ++$argc;
446446
include "$PHPUNIT_DIR/$PHPUNIT_VERSION_DIR/phpunit";

0 commit comments

Comments
 (0)