/**
* @dataProvider provideResolveConfigFileDefaultCases
*/
public function testResolveConfigFileChooseFile($expectedFile, $expectedClass, $path, $cwdPath = null)
{
$resolver = $this->resolver->setOption('path', array($path));
if (null !== $cwdPath) {
$resolver->setCwd($cwdPath);
}
$resolver->resolve();
$this->assertSame($expectedFile, $this->resolver->getConfigFile());
$this->assertInstanceOf($expectedClass, $this->resolver->getConfig());
}