Exemplo n.º 1
0
 /**
  * @param int $index
  * @return CallAssertion
  * @throws AssertionFailedException
  */
 public function inCall($index)
 {
     try {
         return new CallAssertion($this->methodCall, $this->history->inCall($index));
     } catch (\InvalidArgumentException $e) {
         throw new AssertionFailedException($e->getMessage() . "\n" . (new HistoryPrinter())->printAll($this->mockster));
     }
 }