PhpUnit Mocks that suddenly stopped working
We came across a strange thing with the mock framework in PhpUnit . We had some test code that created a mock for a Store class, and gave it a method to mock out: $mockStore = $this->getMock(‘Store’, array(‘save’)); That seemed to work fine in the tests, we could setup expectations, the correct return …