A mock objects setReturnValue method only affects the return value the first time it is called.
code: $mock->setReturnValue( "test", 1 ); $mock->setReturnValue( "test", 2 ); echo $mock->test();
expected result: 2
actual result: 1
Log in to post a comment.