public function KernelTest::testHandleCallsHandleOnHttpKernel in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/KernelTest.php \Symfony\Component\HttpKernel\Tests\KernelTest::testHandleCallsHandleOnHttpKernel()
File
- vendor/
symfony/ http-kernel/ Tests/ KernelTest.php, line 191
Class
Namespace
Symfony\Component\HttpKernel\TestsCode
public function testHandleCallsHandleOnHttpKernel() {
$type = HttpKernelInterface::MASTER_REQUEST;
$catch = true;
$request = new Request();
$httpKernelMock = $this
->getMockBuilder('Symfony\\Component\\HttpKernel\\HttpKernel')
->disableOriginalConstructor()
->getMock();
$httpKernelMock
->expects($this
->once())
->method('handle')
->with($request, $type, $catch);
$kernel = $this
->getKernel(array(
'getHttpKernel',
));
$kernel
->expects($this
->once())
->method('getHttpKernel')
->will($this
->returnValue($httpKernelMock));
$kernel
->handle($request, $type, $catch);
}