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