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