/** * Tests that atMost fails on over calls * @expectedException Phake_Exception_VerificationException */ public function testAtMostOver() { $mock = Phake::mock('PhakeTest_MockedClass'); $mock->foo(); $mock->foo(); Phake::verify($mock, Phake::atMost(1))->foo(); }