Is it possible to configure PHPUnit mock in this way?
$context = $this->getMockBuilder(\'Context\') ->getMock(); $context->expects($this->any
As of PHPUnit 3.6, there is $this->returnValueMap() which may be used to return different values depending on the given parameters to the method stub.