|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 | |
Private Member Functions | |
| skipIfPhpVersionIsNotSupported () | |
Definition at line 14 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::costsProvider | ( | ) |
Definition at line 92 of file ilBcryptPasswordEncoderTest.php.
References $data.
| ilBcryptPasswordEncoderTest::getTestDirectory | ( | ) |
Definition at line 49 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by testClientSaltIsGeneratedWhenNoClientSaltExistsYet(), testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet(), and testInstanceCanBeCreatedAndInitializedWithClientSalt().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::setTestDirectory | ( | $test_directory | ) |
| vfs\vfsStreamDirectory | $test_directory |
Definition at line 57 of file ilBcryptPasswordEncoderTest.php.
References $test_directory.
Referenced by setUp().
Here is the caller graph for this function:
|
protected |
Setup.
Definition at line 65 of file ilBcryptPasswordEncoderTest.php.
References defined, and setTestDirectory().
Here is the call graph for this function:
|
private |
Definition at line 81 of file ilBcryptPasswordEncoderTest.php.
Referenced by testBackwardCompatibility().
Here is the caller graph for this function:| ilBcryptPasswordEncoderTest::testBackwardCompatibility | ( | ) |
Definition at line 294 of file ilBcryptPasswordEncoderTest.php.
References skipIfPhpVersionIsNotSupported().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testBackwardCompatibilityCanBeRetrievedWhenBackwardCompatibilityIsSet | ( | ) |
Definition at line 282 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testClientSaltIsGeneratedWhenNoClientSaltExistsYet | ( | ) |
Definition at line 260 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectory().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 130 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 160 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 140 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 150 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 208 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresReencoding().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testEncoderReliesOnSalts | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 200 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\requiresSalt().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsNotRaisedIfTheRawPasswordContainsA8BitCharacterAndBackwardCompatibilityIsEnabledWithIgnoredSecurityFlaw | ( | ) |
Definition at line 328 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnEncoding | ( | ) |
@expectedException ilPasswordException
Definition at line 224 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfSaltIsMissingIsOnVerification | ( | ) |
@expectedException ilPasswordException
Definition at line 236 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated @expectedException ilPasswordException
Definition at line 181 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 316 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testExceptionIsRaisedWhenClientSaltCouldNotBeGeneratedInCaseNoClientSaltExistsYet | ( | ) |
@expectedException ilPasswordException
Definition at line 271 of file ilBcryptPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and getTestDirectory().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
Definition at line 105 of file ilBcryptPasswordEncoderTest.php.
| ilBcryptPasswordEncoderTest::testInstanceCanBeCreatedAndInitializedWithClientSalt | ( | ) |
Definition at line 248 of file ilBcryptPasswordEncoderTest.php.
References getTestDirectory(), and ilBcryptPasswordEncoder\SALT_STORAGE_FILENAME.
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testNameShouldBeBcrypt | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 216 of file ilBcryptPasswordEncoderTest.php.
References ilBcryptPasswordEncoder\getName().
Here is the call graph for this function:| ilBcryptPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 168 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 191 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().
| 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.