You are here

public function KernelTest::testInitializeBundlesThrowsExceptionWhenABundleIsDirectlyExtendedByTwoBundles in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/KernelTest.php \Symfony\Component\HttpKernel\Tests\KernelTest::testInitializeBundlesThrowsExceptionWhenABundleIsDirectlyExtendedByTwoBundles()

@expectedException \LogicException @expectedExceptionMessage Bundle "ParentCBundle" is directly extended by two bundles "ChildC2Bundle" and "ChildC1Bundle".

File

vendor/symfony/http-kernel/Tests/KernelTest.php, line 686

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testInitializeBundlesThrowsExceptionWhenABundleIsDirectlyExtendedByTwoBundles() {
  $parent = $this
    ->getBundle(null, null, 'ParentCBundle');
  $child1 = $this
    ->getBundle(null, 'ParentCBundle', 'ChildC1Bundle');
  $child2 = $this
    ->getBundle(null, 'ParentCBundle', 'ChildC2Bundle');
  $kernel = $this
    ->getKernel(array(), array(
    $parent,
    $child1,
    $child2,
  ));
  $kernel
    ->boot();
}