public function ResolveDefinitionTemplatesPassTest::testProcessAppendsMethodCallsAlways in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveDefinitionTemplatesPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\ResolveDefinitionTemplatesPassTest::testProcessAppendsMethodCallsAlways()
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ Compiler/ ResolveDefinitionTemplatesPassTest.php, line 40
Class
Namespace
Symfony\Component\DependencyInjection\Tests\CompilerCode
public function testProcessAppendsMethodCallsAlways() {
$container = new ContainerBuilder();
$container
->register('parent')
->addMethodCall('foo', array(
'bar',
));
$container
->setDefinition('child', new DefinitionDecorator('parent'))
->addMethodCall('bar', array(
'foo',
));
$this
->process($container);
$def = $container
->getDefinition('child');
$this
->assertEquals(array(
array(
'foo',
array(
'bar',
),
),
array(
'bar',
array(
'foo',
),
),
), $def
->getMethodCalls());
}