You are here

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

File

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

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testHandleBootsTheKernel() {
  $type = HttpKernelInterface::MASTER_REQUEST;
  $catch = true;
  $request = new Request();
  $httpKernelMock = $this
    ->getMockBuilder('Symfony\\Component\\HttpKernel\\HttpKernel')
    ->disableOriginalConstructor()
    ->getMock();
  $kernel = $this
    ->getKernel(array(
    'getHttpKernel',
    'boot',
  ));
  $kernel
    ->expects($this
    ->once())
    ->method('getHttpKernel')
    ->will($this
    ->returnValue($httpKernelMock));
  $kernel
    ->expects($this
    ->once())
    ->method('boot');
  $kernel
    ->handle($request, $type, $catch);
}