getResult(); } catch (PanicError $caught) { $this->assertGreaterThan(0, \stripos($caught->getMessage(), $message)); return; } $this->fail(\sprintf("Exception should be thrown from %s::getResult()", ExitFailure::class)); } }