PhpSpec\Locator\PSR0\PSR0Locator::getQueryPath PHP Method

getQueryPath() private method

private getQueryPath ( string $query ) : string
$query string
return string
    private function getQueryPath($query)
    {
        $sepr = DIRECTORY_SEPARATOR;
        $replacedQuery = str_replace(array('\\', '/'), $sepr, $query);
        if ($this->queryContainsQualifiedClassName($query)) {
            $namespacedQuery = null === $this->psr4Prefix ? $replacedQuery : substr($replacedQuery, strlen($this->srcNamespace));
            $path = $this->fullSpecPath . $namespacedQuery . 'Spec.php';
            if ($this->filesystem->pathExists($path)) {
                return $path;
            }
        }
        return rtrim(realpath($replacedQuery), $sepr);
    }