PHP Class Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Provider\TwoFactorProviderRegistryTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: scheb/two-factor-bundle

Public Methods

Method Description
beginAuthentication_authenticationNotStarted_notSetSessionFlag ( )
beginAuthentication_authenticationStarted_sessionFlagSet ( )
beginAuthentication_onCall_callTwoFactorProvider ( )
requestAuthenticationCode_alreadyAuthenticated_notCallTwoFactorProvider ( )
requestAuthenticationCode_authenticationFailed_dispatchEvent ( )
requestAuthenticationCode_authenticationSuccessful_dispatchEvent ( )
requestAuthenticationCode_authenticationSuccessful_updateSessionFlag ( )
requestAuthenticationCode_notAuthenticated_callTwoFactorProvider ( )
requestAuthenticationCode_onCall_checkIfAuthenticationComplete ( )
requestAuthenticationCode_requestAuthenticationCode_returnResponse ( )
setUp ( )

Private Methods

Method Description
assertDispatchAuthenticationEvent ( $eventType )
getAuthenticationContext ( $token = null, $authenticated = false, $authCode = null )
getToken ( )
stubIsNotAuthenticated ( $notAuthenticated )

Method Details

beginAuthentication_authenticationNotStarted_notSetSessionFlag() public method

beginAuthentication_authenticationStarted_sessionFlagSet() public method

beginAuthentication_onCall_callTwoFactorProvider() public method

requestAuthenticationCode_alreadyAuthenticated_notCallTwoFactorProvider() public method

requestAuthenticationCode_authenticationFailed_dispatchEvent() public method

requestAuthenticationCode_authenticationSuccessful_dispatchEvent() public method

requestAuthenticationCode_authenticationSuccessful_updateSessionFlag() public method

requestAuthenticationCode_notAuthenticated_callTwoFactorProvider() public method

requestAuthenticationCode_onCall_checkIfAuthenticationComplete() public method

requestAuthenticationCode_requestAuthenticationCode_returnResponse() public method

setUp() public method

public setUp ( )