Nelmio\SecurityBundle\Tests\Listener\FlexibleSslListenerTest::testSecureLogout PHP Метод

testSecureLogout() публичный Метод

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