You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to use Mokka::verify()and Mokka::when() on the same method:
$mock = Mokka::mock(\Acme\Foo::class);
// make sure getFoo() does get called
Mokka::verify($mock)->getFoo();
// let getFoo() return something
Mokka::when($mock)->getFoo()->thenReturn('foo');
unset($mock); // => VerificationException should be thrown
The text was updated successfully, but these errors were encountered:
It should be possible to use
Mokka::verify()
andMokka::when()
on the same method:The text was updated successfully, but these errors were encountered: