Behat\Testwork\ServiceContainer\Configuration\ConfigurationLoader::parseImport PHP Method

parseImport() private method

Parses import.
private parseImport ( string $basePath, string $path, string $profile ) : array
$basePath string
$path string
$profile string
return array
    private function parseImport($basePath, $path, $profile)
    {
        if (!file_exists($path) && file_exists($basePath . DIRECTORY_SEPARATOR . $path)) {
            $path = $basePath . DIRECTORY_SEPARATOR . $path;
        }
        if (!file_exists($path)) {
            throw new ConfigurationLoadingException(sprintf('Can not import `%s` configuration file. File not found.', $path));
        }
        return $this->loadFileConfiguration($path, $profile);
    }