Articles


PHPUnit returnValueMap method does not work: returns NULL

It happens that a method mocking with returnValueMap returns NULL. Sometimes this happens because the returnValueMap method does not specify all the arguments that exist in the signature of the method being replaced. Usually, you can miss out on optional arguments.

read more...