public function ContainerBuilderTest::testSetAliases in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/ContainerBuilderTest.php \Symfony\Component\DependencyInjection\Tests\ContainerBuilderTest::testSetAliases()
@covers Symfony\Component\DependencyInjection\ContainerBuilder::setAliases
File
- vendor/
symfony/ dependency-injection/ Tests/ ContainerBuilderTest.php, line 236
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testSetAliases() {
$builder = new ContainerBuilder();
$builder
->setAliases(array(
'bar' => 'foo',
'foobar' => 'foo',
));
$aliases = $builder
->getAliases();
$this
->assertTrue(isset($aliases['bar']));
$this
->assertTrue(isset($aliases['foobar']));
}