You are here

public function KernelTest::testBootKernelSeveralTimesOnlyInitializesBundlesOnce in Zircon Profile 8.0

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

File

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

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testBootKernelSeveralTimesOnlyInitializesBundlesOnce() {
  $kernel = $this
    ->getKernel(array(
    'initializeBundles',
    'initializeContainer',
  ));
  $kernel
    ->expects($this
    ->once())
    ->method('initializeBundles');
  $kernel
    ->boot();
  $kernel
    ->boot();
}