PhpSpec\Listener\NamedConstructorNotFoundListener::afterExample PHP Метод

afterExample() публичный Метод

public afterExample ( ExampleEvent $event )
$event PhpSpec\Event\ExampleEvent
    public function afterExample(ExampleEvent $event)
    {
        if (null === ($exception = $event->getException())) {
            return;
        }
        if (!$exception instanceof NamedConstructorNotFoundException) {
            return;
        }
        $className = get_class($exception->getSubject());
        $this->methods[$className . '::' . $exception->getMethodName()] = $exception->getArguments();
    }