How i can accept all parameters in function mock with #phpspec2?
for example i have code like this:
$em->persist($entity)->willReturn(true);
I don't want mock all possible parameters, it should accept every entity.
How i can accept all parameters in function mock with #phpspec2?
for example i have code like this:
$em->persist($entity)->willReturn(true);
I don't want mock all possible parameters, it should accept every entity.