Skip to content

AssertMethodTypeSpecifyingExtension does not target the correct class #103

@nreynis

Description

@nreynis

AssertMethodTypeSpecifyingExtension is narrowing types on TestCase but it should really operate on PHPUnit\Framework\Assert where the actual methods are implemented.

The current codebase means that you can have a working assertSomething method in your test case that breaks when you factorize it in a dedicated class (class SomethingAsserter extends Assert)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions