mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding a skip when AppError is present, as its behaviour is unknown.
This commit is contained in:
parent
8c428ff8a8
commit
af87e5d5bc
1 changed files with 3 additions and 0 deletions
|
@ -236,6 +236,9 @@ class ErrorHandlerTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testHandleException() {
|
||||
if ($this->skipIf(file_exists(APP . 'app_error.php'), 'App error exists cannot run.')) {
|
||||
return;
|
||||
}
|
||||
$error = new Error404Exception('Kaboom!');
|
||||
ob_start();
|
||||
ErrorHandler::handleException($error);
|
||||
|
|
Loading…
Reference in a new issue