|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Inheritance diagram for ilBcryptPasswordEncoderTest:
Collaboration diagram for ilBcryptPasswordEncoderTest: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 | ( | ) |
Definition at line 153 of file ilBcryptPasswordEncoderTest.php.
References $data.
| ilBcryptPasswordEncoderTest::getTestDirectory | ( | ) |
Definition at line 46 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by testInstanceCanBeCreatedAndInitializedWithClientSalt().
Here is the caller graph for this function:
|
private |
Definition at line 62 of file ilBcryptPasswordEncoderTest.php.
Referenced by setUp(), and skipIfvfsStreamNotSupported().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::setTestDirectory | ( | $test_directory | ) |
| vfsStreamDirectory | $test_directory |
Definition at line 54 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by setUp().
Here is the caller graph for this function:
|
protected |
Setup.
Definition at line 70 of file ilBcryptPasswordEncoderTest.php.
References isVsfStreamInstalled(), and setTestDirectory().
Here is the call graph for this function:
|
private |
Definition at line 267 of file ilBcryptPasswordEncoderTest.php.
Referenced by testBackwardCompatibility().
Here is the caller graph for this function:
|
private |
Definition at line 278 of file ilBcryptPasswordEncoderTest.php.
References isVsfStreamInstalled().
Referenced by testInstanceCanBeCreatedAndInitializedWithClientSalt().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::testBackwardCompatibility | ( | ) |
Definition at line 245 of file ilBcryptPasswordEncoderTest.php.
References skipIfPhpVersionIsNotSupported().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet | ( | ) |
Definition at line 233 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 117 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getCosts(), and ilBcryptPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCanBeSetInRange | ( | $costs, | |
| ilBcryptPasswordEncoder | $encoder | ||
| ) |
@depends testInstanceCanBeCreated @dataProvider costsProvider
Definition at line 145 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated @expectedException ilPasswordException
Definition at line 127 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated @expectedException ilPasswordException
Definition at line 136 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsNotRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw | ( | ) |
Definition at line 300 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnEncoding | ( | ) |
@expectedException ilPasswordException
Definition at line 197 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnVerification | ( | ) |
@expectedException ilPasswordException
Definition at line 208 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated @expectedException ilPasswordException
Definition at line 179 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), and ilBcryptPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabled | ( | ) |
@expectedException ilPasswordException
Definition at line 289 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
Definition at line 92 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testInstanceCanBeCreatedAndInitializedWithClientSalt | ( | ) |
Definition at line 219 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectory(), ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME, and skipIfvfsStreamNotSupported().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testNameShouldBeBcrypt | ( | ) |
Definition at line 312 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 166 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 188 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPasswordEncoder\setCosts().
Here is the call graph for this function:
|
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.