mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
fix ErrorHandlerTest
This commit is contained in:
parent
bb090c54cf
commit
68b49950af
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue