Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function testEncrypt() |
||
18 | { |
||
19 | $encryptor = new PBKDF2('sha512', 10000); |
||
20 | $salt = 'predictablesaltforunittesting'; |
||
21 | $result = $encryptor->encrypt('opensesame', $salt); |
||
22 | $this->assertSame( |
||
23 | '6bafcacb90', |
||
24 | substr($result, 0, 10), |
||
25 | 'Hashed password with predictable salt did not match fixtured expectation' |
||
26 | ); |
||
38 |