I\'ve got a PHPUnit mock object that returns \'return value\' no matter what its arguments:
\'return value\'
// From inside a test... $mock = $this->getMock(\
It is not exactly what you ask, but in some cases it can help:
$mock->expects( $this->any() ) ) ->method( 'methodToMock' ) ->will( $this->onConsecutiveCalls( 'one', 'two' ) );
onConsecutiveCalls - returns a list of values in the specified order