You are here

public function KernelTest::testInitializeBundlesThrowsExceptionWhenAParentDoesNotExists 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::testInitializeBundlesThrowsExceptionWhenAParentDoesNotExists()

@expectedException \LogicException @expectedExceptionMessage Bundle "ChildCBundle" extends bundle "FooBar", which is not registered.

File

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

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testInitializeBundlesThrowsExceptionWhenAParentDoesNotExists() {
  $child = $this
    ->getBundle(null, 'FooBar', 'ChildCBundle');
  $kernel = $this
    ->getKernel(array(), array(
    $child,
  ));
  $kernel
    ->boot();
}