Open antonmarin opened 8 years ago
If Stub can't do it, just use $this->createMock()
instead.
Tried, but it doesn't work right if i use Stub too and if use only PhpUnit mockery, then code becomes too long and difficult to read.
@antonmarin I was able to implement this using the following technique:
Stub::exactly(2, function ($params) use ($I, $expected) {
$I->assertEquals($expected, $params);
return $params[0];
});
Would be nice to have a handy expectation builder though.
What are you trying to achieve?
Trying to test if method called with my params using Stub utility.
What do you get instead?
No way or documentation to do it
Details
composer show
)