You are here

public function HttpKernelTest::testVerifyRequestStackPushPopDuringHandle in Zircon Profile 8

Same name and namespace in other branches
  1. 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

HttpKernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

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);
}