public function YamlFileLoaderTest::testLoadYamlOnlyWithKeys in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/Tests/Loader/YamlFileLoaderTest.php \Symfony\Component\DependencyInjection\Tests\Loader\YamlFileLoaderTest::testLoadYamlOnlyWithKeys()
File
- vendor/
symfony/ dependency-injection/ Tests/ Loader/ YamlFileLoaderTest.php, line 272
Class
Namespace
Symfony\Component\DependencyInjection\Tests\LoaderCode
public function testLoadYamlOnlyWithKeys() {
$container = new ContainerBuilder();
$loader = new YamlFileLoader($container, new FileLocator(self::$fixturesPath . '/yaml'));
$loader
->load('services21.yml');
$definition = $container
->getDefinition('manager');
$this
->assertEquals(array(
array(
'setLogger',
array(
new Reference('logger'),
),
),
array(
'setClass',
array(
'User',
),
),
), $definition
->getMethodCalls());
$this
->assertEquals(array(
true,
), $definition
->getArguments());
$this
->assertEquals(array(
'manager' => array(
array(
'alias' => 'user',
),
),
), $definition
->getTags());
}