Browse Source

Avoiding debug output in test log

Jose Lorenzo Rodriguez 11 years ago
parent
commit
cb83b3fe63
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/Error/DebuggerTest.php

+ 2 - 2
tests/TestCase/Error/DebuggerTest.php

@@ -55,7 +55,8 @@ class DebuggerTest extends TestCase {
 	public function setUp() {
 		parent::setUp();
 		Configure::write('debug', true);
-		Configure::write('log', false);
+		Log::drop('stderr');
+		Log::drop('stdout');
 	}
 
 /**
@@ -65,7 +66,6 @@ class DebuggerTest extends TestCase {
  */
 	public function tearDown() {
 		parent::tearDown();
-		Configure::write('log', true);
 		if ($this->_restoreError) {
 			restore_error_handler();
 		}