ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5
|
Data Fields | |
const | VALID_COSTS = '08' |
const | PASSWORD = 'password' |
const | WRONG_PASSWORD = 'wrong_password' |
const | CLIENT_SALT = 'homer!12345_/' |
const | PASSWORD_SALT = 'salt' |
Protected Member Functions | |
setUp () | |
Setup. More... | |
Protected Attributes | |
$test_directory | |
Private Member Functions | |
isVsfStreamInstalled () | |
skipIfPhpVersionIsNotSupported () | |
skipIfvfsStreamNotSupported () | |
Definition at line 11 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::costsProvider | ( | ) |
ilBcryptPasswordEncoderTest::getTestDirectory | ( | ) |
Definition at line 46 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by testInstanceCanBeCreatedAndInitializedWithClientSalt().
|
private |
Definition at line 62 of file ilBcryptPasswordEncoderTest.php.
Referenced by setUp(), and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::setTestDirectory | ( | $test_directory | ) |
vfsStreamDirectory | $test_directory |
Definition at line 54 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by setUp().
|
protected |
Setup.
Definition at line 70 of file ilBcryptPasswordEncoderTest.php.
References isVsfStreamInstalled(), and setTestDirectory().
|
private |
Definition at line 267 of file ilBcryptPasswordEncoderTest.php.
Referenced by testBackwardCompatibility().
|
private |
Definition at line 278 of file ilBcryptPasswordEncoderTest.php.
References isVsfStreamInstalled().
Referenced by testInstanceCanBeCreatedAndInitializedWithClientSalt().
ilBcryptPasswordEncoderTest::testBackwardCompatibility | ( | ) |
Definition at line 245 of file ilBcryptPasswordEncoderTest.php.
References skipIfPhpVersionIsNotSupported().
ilBcryptPasswordEncoderTest::testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet | ( | ) |
Definition at line 233 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 117 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getCosts(), and ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCanBeSetInRange | ( | $costs, | |
ilBcryptPasswordEncoder | $encoder | ||
) |
testInstanceCanBeCreated costsProvider
Definition at line 145 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 127 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 136 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testExceptionIsNotRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw | ( | ) |
Definition at line 300 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnEncoding | ( | ) |
Definition at line 197 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnVerification | ( | ) |
Definition at line 208 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated ilPasswordException
Definition at line 179 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), and ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabled | ( | ) |
Definition at line 289 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
ilBcryptPasswordEncoderTest::testInstanceCanBeCreatedAndInitializedWithClientSalt | ( | ) |
Definition at line 219 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectory(), ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME, and skipIfvfsStreamNotSupported().
ilBcryptPasswordEncoderTest::testNameShouldBeBcrypt | ( | ) |
Definition at line 312 of file ilBcryptPasswordEncoderTest.php.
ilBcryptPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 166 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPasswordEncoder\setCosts().
ilBcryptPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPasswordEncoder | $encoder | ) |
testInstanceCanBeCreated
Definition at line 188 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPasswordEncoder\setCosts().
|
protected |
Definition at line 41 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
const ilBcryptPasswordEncoderTest::CLIENT_SALT = 'homer!12345_/' |
Definition at line 31 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::PASSWORD = 'password' |
Definition at line 21 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::PASSWORD_SALT = 'salt' |
Definition at line 36 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::VALID_COSTS = '08' |
Definition at line 16 of file ilBcryptPasswordEncoderTest.php.
const ilBcryptPasswordEncoderTest::WRONG_PASSWORD = 'wrong_password' |
Definition at line 26 of file ilBcryptPasswordEncoderTest.php.