@expectedException \LogicException
public function testInitializeBundlesThrowsExceptionWhenABundleIsDirectlyExtendedByTwoBundles() {
$parent = $this
->getBundle(null, null, 'ParentCBundle');
$child1 = $this
->getBundle(null, 'ParentCBundle', 'ChildC1Bundle');
$child2 = $this
->getBundle(null, 'ParentCBundle', 'ChildC2Bundle');
$kernel = $this
->getKernel();
$kernel
->expects($this
->once())
->method('registerBundles')
->will($this
->returnValue(array(
$parent,
$child1,
$child2,
)));
$kernel
->initializeBundles();
}