-
Notifications
You must be signed in to change notification settings - Fork 462
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() cannot be chained #1137
Comments
@Bilge I believe this is intentional, because the "more correct" way in your first example would be \Mockery::mock(Foo::class)
->shouldReceive('foo')
->getMock()
->shouldReceive('bar')
->getMock() but for whatever reasons it was not necessary, whereas with expects() it is now indeed necessary to use getMock(). But maybe I'm wrong. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Although we can chain
shouldReceive()
, the same cannot be said for the newexpects()
API.The text was updated successfully, but these errors were encountered: