Beispiel #1
0
 function testRecordThrownException()
 {
     Mockster::stub($this->foo->danger())->dontStub();
     try {
         $this->mock->danger();
     } catch (\InvalidArgumentException $ignored) {
     }
     $this->assert->isInstanceOf(Mockster::stub($this->foo->danger())->has()->inCall(0)->thrown(), \InvalidArgumentException::class);
 }