@covers Symfony\Component\DependencyInjection\ContainerBuilder::createService
public function testCreateServiceMethodCalls() {
$builder = new ContainerBuilder();
$builder
->register('bar', 'stdClass');
$builder
->register('foo1', 'FooClass')
->addMethodCall('setBar', array(
array(
'%value%',
new Reference('bar'),
),
));
$builder
->setParameter('value', 'bar');
$this
->assertEquals(array(
'bar',
$builder
->get('bar'),
), $builder
->get('foo1')->bar, '->createService() replaces the values in the method calls arguments');
}