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; }
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); }