public function ContainerBuilderTest::testExtensionConfig 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::testExtensionConfig()
@covers Symfony\Component\DependencyInjection\ContainerBuilder::getExtensionConfig @covers Symfony\Component\DependencyInjection\ContainerBuilder::prependExtensionConfig
File
- vendor/
symfony/ dependency-injection/ Tests/ ContainerBuilderTest.php, line 796
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
public function testExtensionConfig() {
$container = new ContainerBuilder();
$configs = $container
->getExtensionConfig('foo');
$this
->assertEmpty($configs);
$first = array(
'foo' => 'bar',
);
$container
->prependExtensionConfig('foo', $first);
$configs = $container
->getExtensionConfig('foo');
$this
->assertEquals(array(
$first,
), $configs);
$second = array(
'ding' => 'dong',
);
$container
->prependExtensionConfig('foo', $second);
$configs = $container
->getExtensionConfig('foo');
$this
->assertEquals(array(
$second,
$first,
), $configs);
}