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
In Mockito, you can do this:
when(mock.doFoo()).thenReturn("bar");
This syntax should be supported by Mokka (if that is possible in PHP at all).
Mokka::when($mock->doFoo())->thenReturn('bar');
The tricky part is to pass $mock->doFoo() to Mokka::when() as a callable.
$mock->doFoo()
Mokka::when()
The text was updated successfully, but these errors were encountered:
sebastianheuer
No branches or pull requests
In Mockito, you can do this:
This syntax should be supported by Mokka (if that is possible in PHP at all).
The tricky part is to pass
$mock->doFoo()
toMokka::when()
as a callable.The text was updated successfully, but these errors were encountered: