@covers Symfony\Component\DependencyInjection\ContainerBuilder::resolveServices
public function testResolveServices() {
$builder = new ContainerBuilder();
$builder
->register('foo', 'FooClass');
$this
->assertEquals($builder
->get('foo'), $builder
->resolveServices(new Reference('foo')), '->resolveServices() resolves service references to service instances');
$this
->assertEquals(array(
'foo' => array(
'foo',
$builder
->get('foo'),
),
), $builder
->resolveServices(array(
'foo' => array(
'foo',
new Reference('foo'),
),
)), '->resolveServices() resolves service references to service instances in nested arrays');
}