I have a some collaborator and I want a method to be called on this collaborator.
Since in implemented method, collaborator is in for
loop, phpspec
gives me a No calls have been made that match
error
. If I place the code outside of the loop, the error is gone. Though I need the method to be called inside the loop.
Why it does not work within loop?