Example #1
0
 /**
  * @covers Symfony\Components\DependencyInjection\Builder::addAliases
  */
 public function testAddAliases()
 {
     $builder = new Builder();
     $builder->setAliases(array('bar' => 'foo'));
     $builder->addAliases(array('foobar' => 'foo'));
     $this->assertEquals(array('bar' => 'foo', 'foobar' => 'foo'), $builder->getAliases(), '->getAliases() returns all service aliases');
 }