ParaTest\Console\Testers\PHPUnit::getConfig PHP Method

getConfig() protected method

protected getConfig ( Symfony\Component\Console\Input\InputInterface $input ) : Configuration | boolean
$input Symfony\Component\Console\Input\InputInterface
return ParaTest\Runners\PHPUnit\Configuration | boolean
    protected function getConfig(InputInterface $input)
    {
        $cwd = getcwd() . DIRECTORY_SEPARATOR;
        if ($input->getOption('configuration')) {
            $configFilename = $input->getOption('configuration');
        } elseif (file_exists($cwd . 'phpunit.xml.dist')) {
            $configFilename = $cwd . 'phpunit.xml.dist';
        } elseif (file_exists($cwd . 'phpunit.xml')) {
            $configFilename = $cwd . 'phpunit.xml';
        } else {
            return false;
        }
        return new Configuration($configFilename);
    }