Can I somehow update shouldReturn value for specific shouldReceive?
For example I have several tests that have use one return value, and only one that uses some other return value.
So I have put this in setUp:
$this->someDependency->shouldReceive('someMethod')->andReturn(0);
If I put this in that specific test case:
$this->someDependency->shouldReceive('someMethod')->andReturn(1);
It will be ignored and 0 will be returned.
I "fixed" this moving mocking to all tests and removing from setUp. But I don't like that code duplication.