PhpSpec\Listener\CollaboratorMethodNotFoundListener::afterExample PHP Method

afterExample() public method

public afterExample ( ExampleEvent $event )
$event PhpSpec\Event\ExampleEvent
    public function afterExample(ExampleEvent $event)
    {
        if (!($exception = $this->getMethodNotFoundException($event))) {
            return;
        }
        if (!($interface = $this->getDoubledInterface($exception->getClassName()))) {
            return;
        }
        if (!array_key_exists($interface, $this->interfaces)) {
            $this->interfaces[$interface] = array();
        }
        $methodName = $exception->getMethodName();
        $this->interfaces[$interface][$methodName] = $exception->getArguments();
        $this->checkIfMethodNameAllowed($methodName);
    }