Tagged Questions
2
votes
2answers
116 views
Assignments in mock return values
(I will show examples using php and phpunit but this may be applied to any programming language)
The case: let's say we have a method A::foo that delegates some work to class M and returns the value ...