protected function getConfigPath()
{
$cwd = rtrim(getcwd(), DIRECTORY_SEPARATOR);
$paths = array_filter(array($cwd . DIRECTORY_SEPARATOR . 'behat.yml', $cwd . DIRECTORY_SEPARATOR . 'behat.yml.dist', $cwd . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'behat.yml', $cwd . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'behat.yml.dist'), 'is_file');
if (count($paths)) {
return current($paths);
}
return null;
}