catchFatalErrors() public static method

Callback for register_shutdown_function() to handle fatal errors.
public static catchFatalErrors ( Silex\Application $app, boolean $flush = true )
$app Silex\Application
$flush boolean
 public function testGeneralFatalErrorCatch()
 {
     $app = ['resources' => new Standard(TEST_ROOT)];
     ResourceManager::$theApp = $app;
     $this->php2->expects($this->once())->method('error_get_last')->will($this->returnValue($this->errorResponses['unknown']));
     $this->expectOutputRegex('/PHP Fatal error: Bolt generic/');
     LowlevelException::catchFatalErrors($this->getApp(), false);
 }