/**
  * @covers Symfony\Components\DependencyInjection\ContainerBuilder::getAliases
  */
 public function testGetAliases()
 {
     $builder = new ContainerBuilder();
     $builder->setAlias('bar', 'foo');
     $builder->setAlias('foobar', 'foo');
     $this->assertEquals(array('bar' => 'foo', 'foobar' => 'foo'), $builder->getAliases(), '->getAliases() returns all service aliases');
     $builder->register('bar', 'stdClass');
     $this->assertEquals(array('foobar' => 'foo'), $builder->getAliases(), '->getAliases() does not return aliased services that have been overridden');
     $builder->set('foobar', 'stdClass');
     $this->assertEquals(array(), $builder->getAliases(), '->getAliases() does not return aliased services that have been overridden');
 }