protected function setUp()
{
$this->localConfigPath = realpath(__DIR__ . '/../fixtures/local');
$this->globalConfigPath = realpath(__DIR__ . '/../fixtures/home');
$this->config = new Config(false, $this->localConfigPath);
$this->config->merge(['config' => ['home' => $this->globalConfigPath]]);
$package = new RootPackage('my/project', '1.0.0', '1.0.0');
$package->setExtra(['my-local-config' => ['foo' => 'bar']]);
$this->composer = new Composer();
$this->composer->setConfig($this->config);
$this->composer->setPackage($package);
$this->SUT = new ConfigLocator($this->composer);
}