MediaWiki  REL1_24
PasswordTestCase Class Reference
Inheritance diagram for PasswordTestCase:
Collaboration diagram for PasswordTestCase:

List of all members.

Public Member Functions

 testHashing ($shouldMatch, $hash, $password)
 providePasswordTests
 testInvalidUnequalNormal ($shouldMatch, $hash, $password)
 providePasswordTests InvalidPassword::equals InvalidPassword::toString
 testStringSerialization ($shouldMatch, $hash, $password)
 providePasswordTests

Static Public Member Functions

static providePasswordTests ()
 An array of tests in the form of (bool, string, string), where the first element is whether the second parameter (a password hash) and the third parameter (a password) should match.

Protected Member Functions

 getTypeConfigs ()
 Return an array of configs to be used for this class's password type.
 setUp ()

Protected Attributes

PasswordFactory $passwordFactory

Detailed Description

Since:
1.24

Definition at line 26 of file PasswordTestCase.php.


Member Function Documentation

PasswordTestCase::getTypeConfigs ( ) [abstract, protected]

Return an array of configs to be used for this class's password type.

Returns:
array[]

Reimplemented in BcryptPasswordTestCase, Pbkdf2PasswordTest, and LayeredParameterizedPasswordTest.

Referenced by setUp().

static PasswordTestCase::providePasswordTests ( ) [static, abstract]

An array of tests in the form of (bool, string, string), where the first element is whether the second parameter (a password hash) and the third parameter (a password) should match.

Returns:
array

Reimplemented in LayeredParameterizedPasswordTest, Pbkdf2PasswordTest, and BcryptPasswordTestCase.

PasswordTestCase::setUp ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 31 of file PasswordTestCase.php.

References $type, as, and getTypeConfigs().

PasswordTestCase::testHashing ( shouldMatch,
hash,
password 
)

providePasswordTests

Definition at line 59 of file PasswordTestCase.php.

PasswordTestCase::testInvalidUnequalNormal ( shouldMatch,
hash,
password 
)

providePasswordTests InvalidPassword::equals InvalidPassword::toString

Definition at line 80 of file PasswordTestCase.php.

PasswordTestCase::testStringSerialization ( shouldMatch,
hash,
password 
)

providePasswordTests

Definition at line 68 of file PasswordTestCase.php.


Member Data Documentation

PasswordFactory PasswordTestCase::$passwordFactory [protected]

Definition at line 29 of file PasswordTestCase.php.


The documentation for this class was generated from the following file: