Skip to content

[Feature Request] Report error when trying to configure a non existing method on MockObject. #71

Closed
@VincentLanglet

Description

@VincentLanglet

I would be nice if phpstan could return an error for

$foo = $this->createMock(Foo::class);
$foo->method('nonExistingMethod');

$foo is know as Foo&MockObject so I think this would be possible.

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