From 68b49950af5f159543268357bd0e7d6f04255243 Mon Sep 17 00:00:00 2001 From: Rachman Chavik Date: Thu, 10 May 2012 15:29:45 +0700 Subject: [PATCH] fix ErrorHandlerTest --- lib/Cake/Test/Case/Error/ErrorHandlerTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Error/ErrorHandlerTest.php b/lib/Cake/Test/Case/Error/ErrorHandlerTest.php index 9b4500e6d..e4bd57902 100644 --- a/lib/Cake/Test/Case/Error/ErrorHandlerTest.php +++ b/lib/Cake/Test/Case/Error/ErrorHandlerTest.php @@ -48,6 +48,9 @@ class ErrorHandlerTest extends CakeTestCase { $request->base = ''; Router::setRequestInfo($request); Configure::write('debug', 2); + + CakeLog::disable('stdout'); + CakeLog::disable('stderr'); } /** @@ -60,6 +63,8 @@ class ErrorHandlerTest extends CakeTestCase { if ($this->_restoreError) { restore_error_handler(); } + CakeLog::enable('stdout'); + CakeLog::enable('stderr'); } /** @@ -221,7 +226,7 @@ class ErrorHandlerTest extends CakeTestCase { * * @return void */ - public function testLoadPluginHanlder() { + public function testLoadPluginHandler() { App::build(array( 'Plugin' => array( CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS