コード例 #1
0
 function testAtLeastOnceSatisfiedByTwoCalls()
 {
     $mock = new MockDummy();
     $mock->expectAtLeastOnce('aMethod');
     $mock->aMethod();
     $mock->aMethod();
 }
コード例 #2
0
 function testUnderAtLeastOnce()
 {
     $this->_test->expectOnce("assertTrue", array(false, '*'));
     $mock = new MockDummy($this->_test);
     $mock->expectAtLeastOnce("aMethod");
     $mock->tally();
 }