@expectedException \LogicException
public function testInitializeBundlesThrowsExceptionWhenAParentDoesNotExists() {
$child = $this
->getBundle(null, 'FooBar', 'ChildCBundle');
$kernel = $this
->getKernel();
$kernel
->expects($this
->once())
->method('registerBundles')
->will($this
->returnValue(array(
$child,
)));
$kernel
->initializeBundles();
}