|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Inheritance diagram for ilBcryptPhpPasswordEncoderTest:
Collaboration diagram for ilBcryptPhpPasswordEncoderTest: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 | ( | ) |
Definition at line 49 of file ilBcryptPhpPasswordEncoderTest.php.
|
protected |
|
private |
Definition at line 39 of file ilBcryptPhpPasswordEncoderTest.php.
Referenced by testInstanceCanBeCreated().
Here is the caller graph for this function:| ilBcryptPhpPasswordEncoderTest::testCostsCanBeDeterminedDynamically | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 157 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\benchmarkCost().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 79 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getCosts(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testCostsCanBeSetInRange | ( | $costs, | |
| ilBcryptPhpPasswordEncoder | $encoder | ||
| ) |
@depends testInstanceCanBeCreated @dataProvider costsProvider
Definition at line 109 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testCostsCannotBeSetAboveRange | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated @expectedException ilPasswordException
Definition at line 89 of file ilBcryptPhpPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testCostsCannotBeSetBelowRange | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated @expectedException ilPasswordException
Definition at line 99 of file ilBcryptPhpPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testEncoderDoesNotRelyOnSalts | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 172 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBasePasswordEncoder\requiresSalt().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testExceptionIsRaisedIfThePasswordExceedsTheSupportedLengthOnEncoding | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated @expectedException ilPasswordException
Definition at line 130 of file ilBcryptPhpPasswordEncoderTest.php.
References ilPasswordBaseTest\assertException(), ilBcryptPhpPasswordEncoder\encodePassword(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testInstanceCanBeCreated | ( | ) |
Definition at line 61 of file ilBcryptPhpPasswordEncoderTest.php.
References skipIfPhpVersionIsNotSupported().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testNameShouldBeBcryptPhp | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 149 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getName().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 117 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\encodePassword(), ilBcryptPhpPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testPasswordVerificationShouldFailIfTheRawPasswordExceedsTheSupportedLength | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 140 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\isPasswordValid(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testReencodingIsDetectedWhenNecessary | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 180 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\encodePassword(), PASSWORD, ilBcryptPhpPasswordEncoder\requiresReencoding(), and ilBcryptPhpPasswordEncoder\setCosts().
Here is the call graph for this function:| const ilBcryptPhpPasswordEncoderTest::PASSWORD = 'password' |
Definition at line 22 of file ilBcryptPhpPasswordEncoderTest.php.
Referenced by testReencodingIsDetectedWhenNecessary().
| 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.