public function ContainerAwareHttpKernelTest::testVerifyRequestStackPushPopDuringHandle in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/DependencyInjection/ContainerAwareHttpKernelTest.php \Symfony\Component\HttpKernel\Tests\DependencyInjection\ContainerAwareHttpKernelTest::testVerifyRequestStackPushPopDuringHandle()
@dataProvider getProviderTypes
File
- vendor/
symfony/ http-kernel/ Tests/ DependencyInjection/ ContainerAwareHttpKernelTest.php, line 58
Class
- ContainerAwareHttpKernelTest
- @group legacy
Namespace
Symfony\Component\HttpKernel\Tests\DependencyInjectionCode
public function testVerifyRequestStackPushPopDuringHandle($type) {
$request = new Request();
$expected = new Response();
$controller = function () use ($expected) {
return $expected;
};
$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');
$container = $this
->getMock('Symfony\\Component\\DependencyInjection\\ContainerInterface');
$dispatcher = new EventDispatcher();
$resolver = $this
->getResolverMockFor($controller, $request);
$kernel = new ContainerAwareHttpKernel($dispatcher, $container, $resolver, $stack);
$kernel
->handle($request, $type);
}