function testExpectedCallCount() { $mock = new MockDummy(); $mock->expectCallCount('aMethod', 2); $mock->aMethod(); $mock->aMethod(); }
function testCallCounts() { $dummy = new MockDummy(); $dummy->expectCallCount('a', 1, 'My message: %s'); $dummy->a(); $dummy->a(); }
function testExpectedCallCount() { $mock = new MockDummy($this); $mock->expectCallCount("aMethod", 2); $mock->aMethod(); $mock->aMethod(); $mock->tally(); }