diff --git a/cake/tests/cases/console/libs/console_error_handler.test.php b/cake/tests/cases/console/libs/console_error_handler.test.php
index 0b0719a14..f00232bfb 100644
--- a/cake/tests/cases/console/libs/console_error_handler.test.php
+++ b/cake/tests/cases/console/libs/console_error_handler.test.php
@@ -43,7 +43,6 @@ class ConsoleErrorHandlerTest extends CakeTestCase {
*/
function tearDown() {
parent::tearDown();
- ConsoleErrorHandler::$stderr = null;
}
/**
@@ -52,7 +51,7 @@ class ConsoleErrorHandlerTest extends CakeTestCase {
* @return void
*/
function testHandleError() {
- $content = 'Notice Error: This is a notice error in [/some/file, line 275]';
+ $content = "Notice Error: This is a notice error in [/some/file, line 275]\n";
ConsoleErrorHandler::$stderr->expects($this->once())->method('write')
->with($content);