コード例 #1
0
 public function test_unhandled_exception_with_error_handling_enabled()
 {
     $handler = new ErrorHandler();
     $exception = new Exception();
     $recoverableError = new RecoverableError(ErrorType::ERROR, 'foo', 'bar', 'baz');
     $fatalError = new FatalError(ErrorType::PARSE, 'foo', 'bar', 'baz');
     try {
         $handler->handleException($exception);
     } catch (Exception $ex) {
     }
     $handler->handleError($recoverableError);
     $handler->handleFatalError($fatalError);
     ob_start();
 }