public function HttpKernelTest::testVerifyRequestStackPushPopDuringHandle in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/HttpKernelTest.php \Symfony\Component\HttpKernel\Tests\HttpKernelTest::testVerifyRequestStackPushPopDuringHandle()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpKernelTest.php, line 260
Class
Namespace
Symfony\Component\HttpKernel\TestsCode
public function testVerifyRequestStackPushPopDuringHandle() {
$request = new Request();
$stack = $this
->getMock('Symfony\\Component\\HttpFoundation\\RequestStack', array(
'push',
'pop',
));
$stack
->expects($this
->at(0))
->method('push')
->with($this
->equalTo($request));
$stack
->expects($this
->at(1))
->method('pop');
$dispatcher = new EventDispatcher();
$kernel = new HttpKernel($dispatcher, $this
->getResolver(), $stack);
$kernel
->handle($request, HttpKernelInterface::MASTER_REQUEST);
}