public function KernelTest::testHandleBootsTheKernel in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/KernelTest.php \Symfony\Component\HttpKernel\Tests\KernelTest::testHandleBootsTheKernel()
File
- vendor/
symfony/ http-kernel/ Tests/ KernelTest.php, line 213
Class
Namespace
Symfony\Component\HttpKernel\TestsCode
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);
}