Nelmio\SecurityBundle\Tests\Session\CookieSessionHandlerTest::testCookieNotOpened PHP Method

testCookieNotOpened() public method

Cookie not opened.
public testCookieNotOpened ( )
    public function testCookieNotOpened()
    {
        $session = $this->getMock('Symfony\\Component\\HttpFoundation\\Session\\SessionInterface');
        $headers = $this->getMock('Symfony\\Component\\HttpFoundation\\ResponseHeaderBag');
        $headers->expects($this->any())->method('clearCookie');
        $headers->expects($this->any())->method('setCookie');
        $response = new Response();
        $request = new Request();
        $request->setSession($session);
        $response->headers = $headers;
        $this->handler->onKernelRequest(new GetResponseEvent($this->kernel, $request, HttpKernelInterface::MASTER_REQUEST));
        $this->handler->onKernelResponse(new FilterResponseEvent($this->kernel, $request, HttpKernelInterface::MASTER_REQUEST, $response));
    }