Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class PasswordEncryptor_BCryptTest extends FunctionalTest |
||
9 | { |
||
10 | public function testGetCost() |
||
11 | { |
||
12 | $encryptor = new PasswordEncryptor_BCrypt(); |
||
13 | |||
14 | $this->assertEquals(10, $encryptor::get_cost()); |
||
15 | } |
||
16 | |||
17 | public function testSetCost() |
||
18 | { |
||
19 | $encryptor = new PasswordEncryptor_BCrypt(); |
||
20 | |||
21 | $original = $encryptor::get_cost(); |
||
|
|||
22 | |||
23 | $encryptor::set_cost(15); |
||
24 | |||
25 | $this->assertEquals(15, $encryptor::get_cost()); |
||
26 | } |
||
27 | |||
28 | public function testEncrypt() |
||
35 | } |
||
36 | } |
||
37 |