public function XmlFileLoaderTest::testLoadIndexedArguments in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php \Symfony\Component\DependencyInjection\Tests\Loader\XmlFileLoaderTest::testLoadIndexedArguments()
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ Loader/ XmlFileLoaderTest.php, line 460
Class
Namespace
Symfony\Component\DependencyInjection\Tests\LoaderCode
public function testLoadIndexedArguments() {
$container = new ContainerBuilder();
$loader = new XmlFileLoader($container, new FileLocator(self::$fixturesPath . '/xml'));
$loader
->load('services14.xml');
$this
->assertEquals(array(
'index_0' => 'app',
), $container
->findDefinition('logger')
->getArguments());
}