Beispiel #1
0
 /**
  * Enable fatal/non-recoverable error handling.
  */
 public function enableFatalErrorHandling()
 {
     if ($this->isFatalErrorHandlingEnabled()) {
         return;
     }
     register_shutdown_function(function () {
         return $this->errorConverter->extractFatalErrorAndCallHandler($this);
     });
     $this->isFatalErrorHandlingEnabled = true;
 }
 public function test_extract_fatal_error_and_call_handler()
 {
     $converter = new ErrorConverter();
     $handler = new ErrorHandler(true);
     $this->assertNull($converter->extractFatalErrorAndCallHandler($handler));
 }