Ouzo\Tests\Mock\SimpleMock::__call PHP Метод

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

public __call ( $name, $arguments )
    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);
    }