Пример #1
0
 function testCanThrowOnParticularInvocation()
 {
     $mock = new MockDummy();
     $mock->throwAt(2, 'aMethod', new MockTestException());
     $mock->aMethod();
     $mock->aMethod();
     $this->expectException();
     $mock->aMethod();
 }