Fixing failing test caused by additional trailing space.

This commit is contained in:
mark_story 2010-12-04 17:49:09 -05:00
parent b49c4402e5
commit ba63a2948c

View file

@ -43,7 +43,6 @@ class ConsoleErrorHandlerTest extends CakeTestCase {
*/ */
function tearDown() { function tearDown() {
parent::tearDown(); parent::tearDown();
ConsoleErrorHandler::$stderr = null;
} }
/** /**
@ -52,7 +51,7 @@ class ConsoleErrorHandlerTest extends CakeTestCase {
* @return void * @return void
*/ */
function testHandleError() { function testHandleError() {
$content = '<error>Notice Error:</error> This is a notice error in [/some/file, line 275]'; $content = "<error>Notice Error:</error> This is a notice error in [/some/file, line 275]\n";
ConsoleErrorHandler::$stderr->expects($this->once())->method('write') ConsoleErrorHandler::$stderr->expects($this->once())->method('write')
->with($content); ->with($content);