Disable color output in tests by default to avoid issues on windows, fixes #11598
parent
80b02cdef9
commit
52f52dd636
|
@ -27,6 +27,11 @@ if (!class_exists(InstalledVersions::class, false)) {
|
|||
|
||||
Platform::putEnv('COMPOSER_TESTS_ARE_RUNNING', '1');
|
||||
|
||||
// ensure Windows color support detection does not attempt to use colors
|
||||
// as this is dependent on env vars and not actual stream capabilities, see
|
||||
// https://github.com/composer/composer/issues/11598
|
||||
Platform::putEnv('NO_COLOR', '1');
|
||||
|
||||
// symfony/phpunit-bridge sets some default env vars which we do not need polluting the test env
|
||||
Platform::clearEnv('COMPOSER');
|
||||
Platform::clearEnv('COMPOSER_VENDOR_DIR');
|
||||
|
|
Loading…
Reference in New Issue