public function testGetNamesWithAliases()
{
$ls = new Command(CommandConfig::create('ls')->addAlias('ls-alias'));
$cd = new Command(CommandConfig::create('cd')->addAlias('cd-alias'));
$this->collection->add($ls);
$this->collection->add($cd);
$this->assertSame(array('cd', 'cd-alias', 'ls', 'ls-alias'), $this->collection->getNames(true));
}