Consolidate with conditions sniff.

This commit is contained in:
euromark 2014-12-09 03:17:35 +01:00
parent 11981f80fa
commit e1c128bb99
25 changed files with 41 additions and 83 deletions

View file

@ -139,8 +139,7 @@ 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;