Skip to content

Commit 8c2e006

Browse files
Merge branch '6.4' into 7.0
* 6.4: [DoctrineBridge] Fix deprecations baseline in integration tests [DoctrineBridge] Update deprecations baseline bump validator requirement 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 [HttpKernel] Add optional $className param to ControllerEvent::getAttributes() Remove unnecessary usages of DateTime
2 parents c8dc73c + 0776b76 commit 8c2e006

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
@@ -369,7 +369,7 @@ class_exists(\SymfonyExcludeListSimplePhpunit::class, false) && PHPUnit\Util\Bla
369369
}
370370
}
371371

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

375375
if ('\\' === \DIRECTORY_SEPARATOR) {
@@ -436,7 +436,7 @@ class SymfonyExcludeListSimplePhpunit
436436
{
437437
}
438438
}
439-
array_splice($argv, 1, 0, ['--colors=always']);
439+
array_splice($argv, 1, 0, ['--colors='.(false === $getEnvVar('NO_COLOR') ? 'always' : 'never')]);
440440
$_SERVER['argv'] = $argv;
441441
$_SERVER['argc'] = ++$argc;
442442
include "$PHPUNIT_DIR/$PHPUNIT_VERSION_DIR/phpunit";

0 commit comments

Comments
 (0)