PHP Class GoogleAuthenticatorTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: phpgangsta/googleauthenticator

Protected Properties

Property Type Description
$googleAuthenticator * @var $googleAuthenticator PHPGangsta_GoogleAuthenticator

Public Methods

Method Description
codeProvider ( )
testCreateSecretDefaultsToSixteenCharacters ( )
testCreateSecretLengthCanBeSpecified ( )
testGetCodeReturnsCorrectValues ( $secret, $timeSlice, $code )
testGetQRCodeGoogleUrlReturnsCorrectUrl ( )
testItCanBeInstantiated ( )
testSetCodeLength ( )
testVerifyCode ( )
testVerifyCodeWithLeadingZero ( )

Protected Methods

Method Description
setUp ( )

Method Details

codeProvider() public method

public codeProvider ( )

setUp() protected method

protected setUp ( )

testCreateSecretDefaultsToSixteenCharacters() public method

testCreateSecretLengthCanBeSpecified() public method

testGetCodeReturnsCorrectValues() public method

public testGetCodeReturnsCorrectValues ( $secret, $timeSlice, $code )

testGetQRCodeGoogleUrlReturnsCorrectUrl() public method

testItCanBeInstantiated() public method

testSetCodeLength() public method

public testSetCodeLength ( )

testVerifyCode() public method

public testVerifyCode ( )

testVerifyCodeWithLeadingZero() public method

Property Details

$googleAuthenticator protected property

* @var $googleAuthenticator PHPGangsta_GoogleAuthenticator
protected $googleAuthenticator