PHP Class Symfony\Component\Security\Http\Tests\RememberMe\PersistentTokenBasedRememberMeServicesTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: symfony/symfony

Public Methods

Method Description
setUpBeforeClass ( )
testAutoLogin ( )
testAutoLoginDoesNotAcceptAnExpiredCookie ( )
testAutoLoginReturnsNullOnNonExistentUser ( )
testAutoLoginReturnsNullWhenNoCookie ( )
testAutoLoginThrowsExceptionOnInvalidCookie ( )
testAutoLoginThrowsExceptionOnNonExistentToken ( )
testAutoLoginThrowsExceptionOnStolenCookieAndRemovesItFromThePersistentBackend ( )
testLoginFail ( )
testLoginSuccessSetsCookieWhenLoggedInWithNonRememberMeTokenInterfaceImplementation ( )
testLogout ( )
testLogoutSimplyIgnoresInvalidCookie ( )
testLogoutSimplyIgnoresNonSetRequestCookie ( )

Protected Methods

Method Description
encodeCookie ( array $parts )
getProvider ( )
getService ( $userProvider = null, $options = [], $logger = null )

Method Details

encodeCookie() protected method

protected encodeCookie ( array $parts )
$parts array

getProvider() protected method

protected getProvider ( )

getService() protected method

protected getService ( $userProvider = null, $options = [], $logger = null )

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

testAutoLogin() public method

public testAutoLogin ( )

testAutoLoginDoesNotAcceptAnExpiredCookie() public method

testAutoLoginReturnsNullOnNonExistentUser() public method

testAutoLoginReturnsNullWhenNoCookie() public method

testAutoLoginThrowsExceptionOnInvalidCookie() public method

testAutoLoginThrowsExceptionOnNonExistentToken() public method

testAutoLoginThrowsExceptionOnStolenCookieAndRemovesItFromThePersistentBackend() public method

testLoginFail() public method

public testLoginFail ( )

testLoginSuccessSetsCookieWhenLoggedInWithNonRememberMeTokenInterfaceImplementation() public method

testLogout() public method

public testLogout ( )

testLogoutSimplyIgnoresInvalidCookie() public method

testLogoutSimplyIgnoresNonSetRequestCookie() public method