PHP 클래스 AuthenticationCookieTest, phpmyadmin

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin

보호된 프로퍼티들

프로퍼티 타입 설명
$object PMA\libraries\plugins\auth\AuthenticationCookie

공개 메소드들

메소드 설명
doMockResponse ( )
secretsProvider ( ) : array Data provider for secrets splitting.
setup ( ) : void Configures global environment.
tearDown ( ) : void tearDown for test cases
testAESSecretSplit ( $secret, $mac, $aes ) : void Test for secret splitting using getMACSecret and getAESSecret
testAuthCaptcha ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth
testAuthCheckArbitrary ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
testAuthCheckAuthFails ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck (mocking the object itself)
testAuthCheckCaptcha ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
testAuthCheckDecryptPassword ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck (mocking blowfish functions)
testAuthCheckDecryptUser ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck (mock blowfish functions reqd)
testAuthCheckExpires ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
testAuthCheckInvalidCookie ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
testAuthError ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth
testAuthErrorAJAX ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth
testAuthFailsActivity ( )
testAuthFailsDBI ( )
testAuthFailsDeny ( )
testAuthFailsErrno ( )
testAuthFailsNoPass ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authFails
testAuthHeader ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth with headers
testAuthSetUser ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authSetUser
testAuthSetUserWithHeaders ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authSetUser (check for headers redirect)
testCookieDecrypt ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieDecrypt
testCookieDecryptInvalid ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieDecrypt
testCookieEncrypt ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieEncrypt
testGetEncryptionSecretConfigured ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::_getEncryptionSecret
testGetEncryptionSecretEmpty ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::_getEncryptionSecret
testLogout ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
testLogoutDelete ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
testMACSecretSplit ( $secret, $mac, $aes ) : void Test for secret splitting using getAESSecret

메소드 상세

doMockResponse() 공개 메소드

public doMockResponse ( )

secretsProvider() 공개 메소드

Data provider for secrets splitting.
public secretsProvider ( ) : array
리턴 array

setup() 공개 메소드

Configures global environment.
public setup ( ) : void
리턴 void

tearDown() 공개 메소드

tearDown for test cases
public tearDown ( ) : void
리턴 void

testAESSecretSplit() 공개 메소드

Test for secret splitting using getMACSecret and getAESSecret
public testAESSecretSplit ( $secret, $mac, $aes ) : void
리턴 void

testAuthCaptcha() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth
public testAuthCaptcha ( ) : void
리턴 void

testAuthCheckArbitrary() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
public testAuthCheckArbitrary ( ) : void
리턴 void

testAuthCheckAuthFails() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck (mocking the object itself)
public testAuthCheckAuthFails ( ) : void
리턴 void

testAuthCheckCaptcha() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
public testAuthCheckCaptcha ( ) : void
리턴 void

testAuthCheckDecryptPassword() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck (mocking blowfish functions)
public testAuthCheckDecryptPassword ( ) : void
리턴 void

testAuthCheckDecryptUser() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck (mock blowfish functions reqd)
public testAuthCheckDecryptUser ( ) : void
리턴 void

testAuthCheckExpires() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
public testAuthCheckExpires ( ) : void
리턴 void

testAuthCheckInvalidCookie() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
public testAuthCheckInvalidCookie ( ) : void
리턴 void

testAuthError() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth
public testAuthError ( ) : void
리턴 void

testAuthErrorAJAX() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth
public testAuthErrorAJAX ( ) : void
리턴 void

testAuthFailsActivity() 공개 메소드

testAuthFailsDBI() 공개 메소드

public testAuthFailsDBI ( )

testAuthFailsDeny() 공개 메소드

public testAuthFailsDeny ( )

testAuthFailsErrno() 공개 메소드

public testAuthFailsErrno ( )

testAuthFailsNoPass() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authFails
public testAuthFailsNoPass ( ) : void
리턴 void

testAuthHeader() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth with headers
public testAuthHeader ( ) : void
리턴 void

testAuthSetUser() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authSetUser
public testAuthSetUser ( ) : void
리턴 void

testAuthSetUserWithHeaders() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authSetUser (check for headers redirect)
public testAuthSetUserWithHeaders ( ) : void
리턴 void

testCookieDecrypt() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieDecrypt
public testCookieDecrypt ( ) : void
리턴 void

testCookieDecryptInvalid() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieDecrypt
public testCookieDecryptInvalid ( ) : void
리턴 void

testCookieEncrypt() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieEncrypt
public testCookieEncrypt ( ) : void
리턴 void

testGetEncryptionSecretConfigured() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::_getEncryptionSecret

testGetEncryptionSecretEmpty() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::_getEncryptionSecret
public testGetEncryptionSecretEmpty ( ) : void
리턴 void

testLogout() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
public testLogout ( ) : void
리턴 void

testLogoutDelete() 공개 메소드

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
public testLogoutDelete ( ) : void
리턴 void

testMACSecretSplit() 공개 메소드

Test for secret splitting using getAESSecret
public testMACSecretSplit ( $secret, $mac, $aes ) : void
리턴 void

프로퍼티 상세

$object 보호되어 있는 프로퍼티

protected AuthenticationCookie,PMA\libraries\plugins\auth $object
리턴 PMA\libraries\plugins\auth\AuthenticationCookie