Exemplo n.º 1
0
 public function beenCalled($times = null)
 {
     if (!$this->history->beenCalled($times)) {
         $times = $times ? ' ' . $times . ' time' . ($times != 1 ? 's' : '') : '';
         throw new AssertionFailedException($this->methodCall . " was not called" . $times . "\n" . (new HistoryPrinter())->printAll($this->mockster));
     }
 }