mageekguy\atoum\mock\stream::getControllerFromArguments PHP Method

getControllerFromArguments() protected static method

protected static getControllerFromArguments ( $method, array $arguments )
$arguments array
    protected static function getControllerFromArguments($method, array $arguments)
    {
        if (isset($arguments[0]) === false) {
            throw new exceptions\logic('Argument 0 is undefined for function ' . $method . '()');
        }
        $stream = static::findControllerForStream(static::setDirectorySeparator($arguments[0]));
        if ($stream === null) {
            $stream = static::get($arguments[0]);
        }
        return $stream;
    }