Nelmio\SecurityBundle\Tests\Listener\FlexibleSslListenerTest::testUnsecuredLogout PHP Method

testUnsecuredLogout() public method

public testUnsecuredLogout ( )
    public function testUnsecuredLogout()
    {
        $unsecuredLogoutListener = new FlexibleSslListener('auth', true, $this->dispatcher);
        $response = new RedirectResponse('https://foo');
        $request = $this->getMock('Symfony\\Component\\HttpFoundation\\Request');
        $token = $this->getMock('Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface');
        $unsecuredLogoutListener->logout($request, $response, $token);
        $this->assertSame('http://foo', $response->headers->get('Location'));
    }