public function eventAt($index = 0)
{
if (0 === $index) {
return $this->calledEvent;
}
$events = $this->allEvents();
$count = count($events);
if (!$this->normalizeIndex($count, $index, $normalized)) {
throw new UndefinedEventException($index);
}
return $events[$normalized];
}