|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 Member Functions inherited from ilPasswordBaseTest | |
| assertException ($exception_class) | |
Protected Attributes | |
| $test_directory | |
| $test_directory_url | |
Private Member Functions | |
| skipIfPhpVersionIsNotSupported () | |
| getInstanceWithConfiguredDataDirectory () | |
Definition at line 14 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::costsProvider | ( | ) |
Definition at line 108 of file ilBcryptPasswordEncoderTest.php.
|
private |
Definition at line 120 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectoryUrl().
Referenced by testBackwardCompatibility(), testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet(), testClientSaltIsGeneratedWhenNoClientSaltExistsYet(), testExceptionIsNotRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw(), testExceptionIsRaisedIfSaltIsMissingIsOnEncoding(), testExceptionIsRaisedIfSaltIsMissingIsOnVerification(), testExceptionIsRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabled(), testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet(), and testInstanceCanBeCreatedAndInitializedWithClientSalt().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::getTestDirectory | ( | ) |
Definition at line 54 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by testClientSaltIsGeneratedWhenNoClientSaltExistsYet(), testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet(), and testInstanceCanBeCreatedAndInitializedWithClientSalt().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::getTestDirectoryUrl | ( | ) |
Definition at line 70 of file ilBcryptPasswordEncoderTest.php.
References $test_directory_url.
Referenced by getInstanceWithConfiguredDataDirectory(), and testInstanceCanBeCreated().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::setTestDirectory | ( | $test_directory | ) |
| vfs\vfsStreamDirectory | $test_directory |
Definition at line 62 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by setUp().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::setTestDirectoryUrl | ( | $test_directory_url | ) |
| string | $test_directory_url |
Definition at line 78 of file ilBcryptPasswordEncoderTest.php.
References $test_directory_url.
Referenced by setUp().
Here is the caller graph for this function:
|
protected |
Setup.
Definition at line 86 of file ilBcryptPasswordEncoderTest.php.
References setTestDirectory(), and setTestDirectoryUrl().
Here is the call graph for this function:
|
private |
Definition at line 98 of file ilBcryptPasswordEncoderTest.php.
Referenced by testBackwardCompatibility().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::testBackwardCompatibility | ( | ) |
Definition at line 325 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), and skipIfPhpVersionIsNotSupported().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet | ( | ) |
Definition at line 313 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testClientSaltIsGeneratedWhenNoClientSaltExistsYet | ( | ) |
Definition at line 291 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), and getTestDirectory().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 161 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getCosts(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCanBeSetInRange | ( | $costs, | |
| ilBcryptPasswordEncoder | $encoder | ||
| ) |
@depends testInstanceCanBeCreated @dataProvider costsProvider
Definition at line 191 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated @expectedException ilPasswordException
Definition at line 171 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated @expectedException ilPasswordException
Definition at line 181 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testEncoderDoesNotSupportReencoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 239 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresReencoding().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testEncoderReliesOnSalts | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 231 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresSalt().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsNotRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw | ( | ) |
Definition at line 359 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnEncoding | ( | ) |
@expectedException ilPasswordException
Definition at line 255 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and getInstanceWithConfiguredDataDirectory().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnVerification | ( | ) |
@expectedException ilPasswordException
Definition at line 267 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and getInstanceWithConfiguredDataDirectory().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated @expectedException ilPasswordException
Definition at line 212 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), ilBcryptPasswordEncoder\encodePassword(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabled | ( | ) |
@expectedException ilPasswordException
Definition at line 347 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and getInstanceWithConfiguredDataDirectory().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet | ( | ) |
@expectedException ilPasswordException
Definition at line 302 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), getInstanceWithConfiguredDataDirectory(), and getTestDirectory().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
Definition at line 132 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectoryUrl().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testInstanceCanBeCreatedAndInitializedWithClientSalt | ( | ) |
Definition at line 279 of file ilBcryptPasswordEncoderTest.php.
References getInstanceWithConfiguredDataDirectory(), getTestDirectory(), and ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME.
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testNameShouldBeBcrypt | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 247 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getName().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 199 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\encodePassword(), ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 222 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:
|
protected |
Definition at line 44 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
|
protected |
Definition at line 49 of file ilBcryptPasswordEncoderTest.php.
Referenced by getTestDirectoryUrl(), and setTestDirectoryUrl().
| const ilBcryptPasswordEncoderTest::CLIENT_SALT = 'homer!12345_/' |
Definition at line 34 of file ilBcryptPasswordEncoderTest.php.
| const ilBcryptPasswordEncoderTest::PASSWORD = 'password' |
Definition at line 24 of file ilBcryptPasswordEncoderTest.php.
| const ilBcryptPasswordEncoderTest::PASSWORD_SALT = 'salt' |
Definition at line 39 of file ilBcryptPasswordEncoderTest.php.
| const ilBcryptPasswordEncoderTest::VALID_COSTS = '08' |
Definition at line 19 of file ilBcryptPasswordEncoderTest.php.
| const ilBcryptPasswordEncoderTest::WRONG_PASSWORD = 'wrong_password' |
Definition at line 29 of file ilBcryptPasswordEncoderTest.php.