Example #1
0
 /**
  * test default value of stream 'outputAs'
  *
  * @return void
  */
 public function testDefaultOutputAs()
 {
     TestCakeLog::config('test_console_log', array('engine' => 'TestConsole'));
     if (DS === '\\' && !(bool) env('ANSICON') || function_exists('posix_isatty') && !posix_isatty(null)) {
         $expected = ConsoleOutput::PLAIN;
     } else {
         $expected = ConsoleOutput::COLOR;
     }
     $stream = TestCakeLog::stream('test_console_log');
     $config = $stream->config();
     $this->assertEquals($expected, $config['outputAs']);
 }