mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Remove duplicated code backup.
This restoration/backup is done in the parent class.
This commit is contained in:
parent
54bfa4cc05
commit
990fbcdea0
2 changed files with 0 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue