|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 50 of file ilBcryptPhpPasswordEncoderTest.php.
References $data.
|
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 159 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\benchmarkCost().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testCostsCanBeRetrievedWhenCostsAreSet | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 81 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 111 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 91 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 101 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 174 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 132 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 63 of file ilBcryptPhpPasswordEncoderTest.php.
References skipIfPhpVersionIsNotSupported().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testNameShouldBeBcryptPhp | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 151 of file ilBcryptPhpPasswordEncoderTest.php.
References ilBcryptPhpPasswordEncoder\getName().
Here is the call graph for this function:| ilBcryptPhpPasswordEncoderTest::testPasswordShouldBeCorrectlyEncodedAndVerified | ( | ilBcryptPhpPasswordEncoder | $encoder | ) |
@depends testInstanceCanBeCreated
Definition at line 119 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 142 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 182 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.