@covers Symfony\Component\DependencyInjection\ContainerBuilder::getServiceIds
public function testGetServiceIds() {
$builder = new ContainerBuilder();
$builder
->register('foo', 'stdClass');
$builder->bar = $bar = new \stdClass();
$builder
->register('bar', 'stdClass');
$this
->assertEquals(array(
'foo',
'bar',
'service_container',
), $builder
->getServiceIds(), '->getServiceIds() returns all defined service ids');
}