Hi I have the problem with changing the expectation of the mock
$mock->expects($this->any())->method('returnValue')->willReturn(1);
$mock->callSomeMethod();
$mock->expects($this->any())->method('returnValue')->willReturn(100);
so the problem is that I don't know how much time callSomeMethod
will call returnValue
and I need to change expects but $mock
always return 1