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);
}