protected function setUp()
{
$this->tempDir = __DIR__ . '/temp';
$this->config = new Config(false, realpath(__DIR__ . '/fixtures/local'));
$this->config->merge(['config' => ['home' => __DIR__]]);
$this->io = new BufferIO();
$this->composer = new Composer();
$this->composer->setConfig($this->config);
$this->composer->setPackage(new RootPackage('my/project', '1.0.0', '1.0.0'));
$this->composer->setPluginManager(new PluginManager($this->io, $this->composer));
$this->composer->setEventDispatcher(new EventDispatcher($this->composer, $this->io));
self::cleanTempDir();
mkdir($this->tempDir);
}