You are here

private function TestSessionListenerTest::filterResponse in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/EventListener/TestSessionListenerTest.php \Symfony\Component\HttpKernel\Tests\EventListener\TestSessionListenerTest::filterResponse()
4 calls to TestSessionListenerTest::filterResponse()
TestSessionListenerTest::testDoesNotDeleteCookieIfUsingSessionLifetime in vendor/symfony/http-kernel/Tests/EventListener/TestSessionListenerTest.php
TestSessionListenerTest::testShouldNotSaveSubRequestSession in vendor/symfony/http-kernel/Tests/EventListener/TestSessionListenerTest.php
TestSessionListenerTest::testShouldSaveMasterRequestSession in vendor/symfony/http-kernel/Tests/EventListener/TestSessionListenerTest.php
TestSessionListenerTest::testUnstartedSessionIsNotSave in vendor/symfony/http-kernel/Tests/EventListener/TestSessionListenerTest.php

File

vendor/symfony/http-kernel/Tests/EventListener/TestSessionListenerTest.php, line 81

Class

TestSessionListenerTest
SessionListenerTest.

Namespace

Symfony\Component\HttpKernel\Tests\EventListener

Code

private function filterResponse(Request $request, $type = HttpKernelInterface::MASTER_REQUEST) {
  $request
    ->setSession($this->session);
  $response = new Response();
  $kernel = $this
    ->getMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface');
  $event = new FilterResponseEvent($kernel, $request, $type, $response);
  $this->listener
    ->onKernelResponse($event);
  $this
    ->assertSame($response, $event
    ->getResponse());
  return $response;
}