Inheritance: extends Exception
Exemplo n.º 1
0
 protected function tearDown()
 {
     parent::tearDown();
     // Clear the queue of LowlevelExceptions or they get needlessly reported at the end of the test run.
     // @deprcated remove with new error handling.
     LowlevelException::$screen = null;
 }
Exemplo n.º 2
0
 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);
 }