private function callAfterExample($event, $nameChecker, $method, $isNameValid = true)
{
$exception = new MethodNotFoundException('Error', new DoubleOfInterface(), $method);
$event->getException()->willReturn($exception);
$nameChecker->isNameValid($method)->willReturn($isNameValid);
$this->afterExample($event);
}