ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Data Fields | |
const | VALID_COSTS = '08' |
const | PASSWORD = 'password' |
const | WRONG_PASSWORD = 'wrong_password' |
Protected Member Functions | |
setUp () | |
Setup. More... | |
Protected Member Functions inherited from ilPasswordBaseTest | |
assertException ($exception_class) | |
Private Member Functions | |
skipIfPhpVersionIsNotSupported () | |
Definition at line 12 of file ilBcryptPhpPasswordEncoderTest.php.
ilBcryptPhpPasswordEncoderTest::costsProvider | ( | ) |
|
protected |
|
private |
Definition at line 39 of file ilBcryptPhpPasswordEncoderTest.php.
Referenced by testInstanceCanBeCreated().
ilBcryptPhpPasswordEncoderTest::testCostsCanBeDeterminedDynamically | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 159 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\benchmarkCost().
ilBcryptPhpPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 81 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getCosts(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testCostsCanBeSetInRange | ( | $costs, | |
ilBcryptPhpPasswordEncoder | $encoder | ||
) |
testInstanceCanBeCreated costsProvider
Definition at line 111 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 91 of file ilBcryptPhpPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 101 of file ilBcryptPhpPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testEncoderDoesNotRelyOnSalts | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 174 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBasePasswordEncoder\requiresSalt().
ilBcryptPhpPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 132 of file ilBcryptPhpPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), ilBcryptPhpPasswordEncoder\encodePassword(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
Definition at line 63 of file ilBcryptPhpPasswordEncoderTest.php.
References array, and skipIfPhpVersionIsNotSupported().
ilBcryptPhpPasswordEncoderTest::testNameShouldBeBcryptPhp | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 151 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getName().
ilBcryptPhpPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 119 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\encodePassword(), ilBcryptPhpPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 142 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
ilBcryptPhpPasswordEncoderTest::testReencodingIsDetectedWhenNecessary | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 182 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\encodePassword(), ilBcryptPhpPasswordEncoder\requiresReencoding(), and ilBcryptPhpPasswordEncoder\setCosts().
const ilBcryptPhpPasswordEncoderTest::PASSWORD = 'password' |
Definition at line 22 of file ilBcryptPhpPasswordEncoderTest.php.
const ilBcryptPhpPasswordEncoderTest::VALID_COSTS = '08' |
Definition at line 17 of file ilBcryptPhpPasswordEncoderTest.php.
const ilBcryptPhpPasswordEncoderTest::WRONG_PASSWORD = 'wrong_password' |
Definition at line 27 of file ilBcryptPhpPasswordEncoderTest.php.