diff --git a/lib/Cake/Test/Case/Error/ErrorHandlerTest.php b/lib/Cake/Test/Case/Error/ErrorHandlerTest.php index 0385361ea..ce49ac080 100644 --- a/lib/Cake/Test/Case/Error/ErrorHandlerTest.php +++ b/lib/Cake/Test/Case/Error/ErrorHandlerTest.php @@ -47,8 +47,6 @@ class ErrorHandlerTest extends CakeTestCase { $request = new CakeRequest(null, false); $request->base = ''; Router::setRequestInfo($request); - $this->_debug = Configure::read('debug'); - $this->_error = Configure::read('Error'); Configure::write('debug', 2); } @@ -58,9 +56,6 @@ class ErrorHandlerTest extends CakeTestCase { * @return void */ public function tearDown() { - Configure::write('debug', $this->_debug); - Configure::write('Error', $this->_error); - App::build(); if ($this->_restoreError) { restore_error_handler(); } diff --git a/lib/Cake/Test/Case/Error/ExceptionRendererTest.php b/lib/Cake/Test/Case/Error/ExceptionRendererTest.php index 42c5dfc65..479ce0698 100644 --- a/lib/Cake/Test/Case/Error/ExceptionRendererTest.php +++ b/lib/Cake/Test/Case/Error/ExceptionRendererTest.php @@ -165,8 +165,6 @@ class ExceptionRendererTest extends CakeTestCase { $request = new CakeRequest(null, false); $request->base = ''; Router::setRequestInfo($request); - $this->_debug = Configure::read('debug'); - $this->_error = Configure::read('Error'); Configure::write('debug', 2); } @@ -176,9 +174,6 @@ class ExceptionRendererTest extends CakeTestCase { * @return void */ public function tearDown() { - Configure::write('debug', $this->_debug); - Configure::write('Error', $this->_error); - App::build(); if ($this->_restoreError) { restore_error_handler(); }