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