mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
fix failling test on Jenkins after ee1e270
This test is failling build on 2.5, 2.6 and 3.0 since #4477
This commit is contained in:
parent
fb4b79d292
commit
0215ada9dd
1 changed files with 4 additions and 1 deletions
|
@ -139,7 +139,10 @@ class ConsoleLogTest extends CakeTestCase {
|
|||
TestCakeLog::config('test_console_log', array(
|
||||
'engine' => 'TestConsole',
|
||||
));
|
||||
if (DS === '\\' && !(bool)env('ANSICON')) {
|
||||
if (
|
||||
(DS === '\\' && !(bool)env('ANSICON')) ||
|
||||
(function_exists('posix_isatty') && !posix_isatty(null))
|
||||
) {
|
||||
$expected = ConsoleOutput::PLAIN;
|
||||
} else {
|
||||
$expected = ConsoleOutput::COLOR;
|
||||
|
|
Loading…
Add table
Reference in a new issue