function testExpectations() { $mock = new TestDummy(); $mock->expectCallCount('anotherMethod', 2); $mock->expect('anotherMethod', array(77)); $mock->expectAt(1, 'anotherMethod', array(66)); $mock->anotherMethod(77); $mock->anotherMethod(66); }