You are here

public function XmlFileLoaderTest::testLoadIndexedArguments in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Tests/Loader/XmlFileLoaderTest.php \Symfony\Component\DependencyInjection\Tests\Loader\XmlFileLoaderTest::testLoadIndexedArguments()

File

vendor/symfony/dependency-injection/Tests/Loader/XmlFileLoaderTest.php, line 458

Class

XmlFileLoaderTest

Namespace

Symfony\Component\DependencyInjection\Tests\Loader

Code

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());
}