Skip to content

InvokeParentHookMethodRule does not detect parent call in finally #961

@devfrey

Description

@devfrey

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions