Skip to content
Permalink
Browse files

fix failling test on Jenkins after ee1e270

This test is failling build on 2.5, 2.6 and 3.0 since #4477
  • Loading branch information...
antograssiot committed Sep 13, 2014
1 parent fb4b79d commit 0215ada9dd1ba010ddbbe50514a19de6f26ad7c7
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/Cake/Test/Case/Log/Engine/ConsoleLogTest.php
@@ -139,7 +139,10 @@ public function testDefaultOutputAs() {
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;

0 comments on commit 0215ada

Please sign in to comment.
You can’t perform that action at this time.