PhpSpec\Listener\CollaboratorMethodNotFoundListener::getMethodNotFoundException PHP Method

getMethodNotFoundException() private method

private getMethodNotFoundException ( ExampleEvent $event ) : boolean | Exception
$event PhpSpec\Event\ExampleEvent
return boolean | Exception
    private function getMethodNotFoundException(ExampleEvent $event)
    {
        if ($this->io->isCodeGenerationEnabled() && ($exception = $event->getException()) && $exception instanceof MethodNotFoundException) {
            return $exception;
        }
    }