MediaWiki
REL1_24
|
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 |
Definition at line 26 of file PasswordTestCase.php.
PasswordTestCase::getTypeConfigs | ( | ) | [abstract, protected] |
Return an array of configs to be used for this class's password type.
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.
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.
PasswordFactory PasswordTestCase::$passwordFactory [protected] |
Definition at line 29 of file PasswordTestCase.php.