public function __call($name, $arguments)
{
$methodCall = new MethodCall($name, $arguments);
$this->_called_methods[] = $methodCall;
$matching = $this->getMatchingStubbedCalls($methodCall);
if (empty($matching)) {
return null;
}
$firstMatching = Arrays::first($matching);
$this->removeMatchedCallIfMultipleResults($matching);
return $firstMatching->evaluate($methodCall);
}