-
Notifications
You must be signed in to change notification settings - Fork 19
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
Call to an undefined method Mockery\ExpectationInterface|Mockery\ExpectsHigherOrderMessage::once() #11
Comments
Same issue with: $form->shouldReceive('get->getData')->times(2)->andReturnNull();
|
For the record I do not have this issue anymore by upgrading from |
ruudk
referenced
this issue
in ruudk/phpstan-mockery
Feb 3, 2021
This fixes the issue when using: ``` $this->fooMock->shouldNotReceive('doFoo')->andReturn('bar'); // Call to an undefined method Mockery\ExpectationInterface|Mockery\HigherOrderMessage::andReturn() ``` Fixes #11
Merged
ruudk
referenced
this issue
in ruudk/phpstan-mockery
Feb 3, 2021
This fixes the issue when using: ``` $this->fooMock->shouldNotReceive('doFoo')->andReturn('bar'); // Call to an undefined method Mockery\ExpectationInterface|Mockery\HigherOrderMessage::andReturn() ``` Fixes #11
ruudk
referenced
this issue
in ruudk/phpstan-mockery
Feb 3, 2021
This fixes the issue when using: ``` $this->fooMock->shouldNotReceive('doFoo')->andReturn('bar'); // Call to an undefined method Mockery\ExpectationInterface|Mockery\HigherOrderMessage::andReturn() ``` Add tests for `shouldHaveReceived` and `shouldNotHaveReceived`. Fixes #11
ondrejmirtes
pushed a commit
that referenced
this issue
Feb 5, 2021
This fixes the issue when using: ``` $this->fooMock->shouldNotReceive('doFoo')->andReturn('bar'); // Call to an undefined method Mockery\ExpectationInterface|Mockery\HigherOrderMessage::andReturn() ``` Add tests for `shouldHaveReceived` and `shouldNotHaveReceived`. Fixes #11
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Gives
v0.11.3
Not sure if doable 🤔
The text was updated successfully, but these errors were encountered: