Remove duplicated code backup.

This restoration/backup is done in the parent class.
This commit is contained in:
mark_story 2012-03-31 13:29:08 -04:00
parent 54bfa4cc05
commit 990fbcdea0
2 changed files with 0 additions and 10 deletions

View file

@ -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();
}

View file

@ -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();
}