When a test case calls parent::tearDown() from a finally clause, the InvokeParentHookMethodRule does not detect it. Even though the method will always be called.
protected function tearDown(): void
{
try {
// something that might throw an exception
} finally {
parent::tearDown();
}
}
Method Tests\TestCase::tearDown() does not invoke parent::tearDown().