Skip to content

Call to an undefined method Mockery\ExpectationInterface|Mockery\ExpectsHigherOrderMessage::once() #11

@simPod

Description

@simPod
$mock = Mockery::mock(MyClass::class);

self::assertSth($mock);

...

private function assertSth(MockInterface $mock) : void
{
    $mock->expect('call')->once();
}

Gives

Call to an undefined method Mockery\ExpectationInterface|Mockery\ExpectsHigherOrderMessage::once()

v0.11.3

Not sure if doable 🤔

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