I\'ve run into a strange issue with PHPUnit mock objects. I have a method that should be called twice, so I\'m using the \"at\" matcher. This works for the first time the method
Are you sure you included MyClass in your test? I have had some undefined method errors when mocking a class/interface without including it.