We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$mock = Mockery::mock(Something::class); $mock ->shouldReceive('foo') ->andReturn(null) ->shouldReceive('bar');
Currently, the second shouldReceive call will trigger this error: Call to an undefined method Mockery\Expectation::shouldReceive().
shouldReceive
Call to an undefined method Mockery\Expectation::shouldReceive().
$mock = Mockery::mock('Foo\Bar[method1,method2]');
Currently, $mock is assumed to be of type Foo\Bar[method1,method2]
Foo\Bar[method1,method2]
$mock = Mockery::mock(Bar::class)->shouldDeferMissing();
Currently, methods returning Mockery\Mock will just return that, instead of an intersection type.
The text was updated successfully, but these errors were encountered:
Also doesn't currently support the alias mock syntax:
Mockery::mock('alias:Foo\Bar') ->shouldReceive('bar')
Call to method shouldReceive() on an unknown class alias:Foo\Bar.
Sorry, something went wrong.
Solved with #6.
andReturn
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.
No branches or pull requests
Some expectation methods
Currently, the second
shouldReceive
call will trigger this error:Call to an undefined method Mockery\Expectation::shouldReceive().
Partial mocks
Currently, $mock is assumed to be of type
Foo\Bar[method1,method2]
Methods returning Mock
Currently, methods returning Mockery\Mock will just return that, instead of an intersection type.
The text was updated successfully, but these errors were encountered: