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
Hello,
Another question :). Is it possible to be more flexible on Doubles method parameters? (I used a lot Argument prophecy object)
$myDouble = Double::instance(['implements' => [MyDoubleInterface::class]]);
allow($myDouble)
->toReceive('get')->with(MyObjectInterface::class, A_int) //get method signature get(MyObject $object, number: Int) and I just want the library to create object for me and generate a int for the second parameter
;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Another question :). Is it possible to be more flexible on Doubles method parameters? (I used a lot Argument prophecy object)
like with phpunit prophecy
Beta Was this translation helpful? Give feedback.
All reactions