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