expectException('Exception'); throw new \Exception('hello'); } public function testIsStillInitialized() { static::assertTrue(static::$bIsCorrectlyInitialized); } public function testFailingDueToUnexpectedException() { static::$bIsCorrectlyInitialized = false; This_Is_Not_A_Function_And_Causes_A_Fatal_Error(); } public function testIsStillInitializedAnyway() { static::assertTrue(static::$bIsCorrectlyInitialized); } }