fix ErrorHandlerTest

This commit is contained in:
Rachman Chavik 2012-05-10 15:29:45 +07:00
parent bb090c54cf
commit 68b49950af

View file

@ -48,6 +48,9 @@ class ErrorHandlerTest extends CakeTestCase {
$request->base = ''; $request->base = '';
Router::setRequestInfo($request); Router::setRequestInfo($request);
Configure::write('debug', 2); Configure::write('debug', 2);
CakeLog::disable('stdout');
CakeLog::disable('stderr');
} }
/** /**
@ -60,6 +63,8 @@ class ErrorHandlerTest extends CakeTestCase {
if ($this->_restoreError) { if ($this->_restoreError) {
restore_error_handler(); restore_error_handler();
} }
CakeLog::enable('stdout');
CakeLog::enable('stderr');
} }
/** /**
@ -221,7 +226,7 @@ class ErrorHandlerTest extends CakeTestCase {
* *
* @return void * @return void
*/ */
public function testLoadPluginHanlder() { public function testLoadPluginHandler() {
App::build(array( App::build(array(
'Plugin' => array( 'Plugin' => array(
CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS