function testOnceSatisfiedByOneCall() { $mock = new MockDummy(); $mock->expectOnce('aMethod'); $mock->aMethod(); }
function testOverOnce() { $this->_test->expectOnce("assertTrue", array(false, '*')); $mock = new MockDummy($this->_test); $mock->expectOnce("aMethod"); $mock->aMethod(); $mock->aMethod(); $mock->tally(); $this->swallowErrors(); }