You are here

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

File

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

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testTerminateReturnsSilentlyIfKernelIsNotBooted() {
  $kernel = $this
    ->getKernel(array(
    'getHttpKernel',
  ));
  $kernel
    ->expects($this
    ->never())
    ->method('getHttpKernel');
  $kernel
    ->terminate(Request::create('/'), new Response());
}