Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expects Mockery\Expectation, PHPStan\Mockery\Type\Expects given. #10

Open
simPod opened this issue Aug 21, 2019 · 0 comments
Open

Expects Mockery\Expectation, PHPStan\Mockery\Type\Expects given. #10

simPod opened this issue Aug 21, 2019 · 0 comments

Comments

@simPod
Copy link
Contributor

simPod commented Aug 21, 2019

$mock = Mockery::mock(MyClass::class);
$expectCall = $mock->expect('call');

self::assertSth($expectCall);

...

private function assertSth(Expectation $expectCall) : void
{
    $expectCall->once();
}

Gives

Parameter #1 $expectCall of method Ns\ClassTest::assertSth() expects Mockery\Expectation, PHPStan\Mockery\Type\Expects given.

v0.11.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant