Skip to content
Permalink
Browse files

fix test failing jenkins + CS

  • Loading branch information...
antograssiot committed Sep 26, 2014
1 parent 58784a5 commit 070b0ea4e9603df1bf5ae1fe9d0ecac8730a79a0
@@ -64,7 +64,10 @@ public function testlogToFileStream() {
* test default value of stream 'outputAs'
*/
public function testDefaultOutputAs() {
if (DS === '\\' && !(bool)env('ANSICON')) {
if (
(DS === '\\' && !(bool)env('ANSICON')) ||
(function_exists('posix_isatty') && !posix_isatty(null))
) {
$expected = ConsoleOutput::PLAIN;
} else {
$expected = ConsoleOutput::COLOR;
@@ -34,7 +34,6 @@ class StringObject {
public function __toString() {
return 'Hey!';
}
}
/**
@@ -14,9 +14,9 @@
*/
namespace Cake\Test\TestCase\Shell\Task;
use Cake\Shell\Task\TemplateTask;
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Shell\Task\TemplateTask;
use Cake\TestSuite\TestCase;
/**

0 comments on commit 070b0ea

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