You are here

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

File

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

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testShutdownCallsShutdownOnAllBundles() {
  $bundle = $this
    ->getMock('Symfony\\Component\\HttpKernel\\Bundle\\Bundle');
  $bundle
    ->expects($this
    ->once())
    ->method('shutdown');
  $kernel = $this
    ->getKernel(array(), array(
    $bundle,
  ));
  $kernel
    ->boot();
  $kernel
    ->shutdown();
}