Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class PasswordEncryptor_BCryptTest extends FunctionalTest |
||
13 | { |
||
14 | /** |
||
15 | * |
||
16 | */ |
||
17 | public function testGetCost() |
||
18 | { |
||
19 | $encryptor = new PasswordEncryptor_BCrypt(); |
||
20 | |||
21 | $this->assertEquals(10, $encryptor::get_cost()); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * |
||
26 | */ |
||
27 | public function testSetCost() |
||
28 | { |
||
29 | $encryptor = new PasswordEncryptor_BCrypt(); |
||
30 | |||
31 | $original = $encryptor::get_cost(); |
||
|
|||
32 | |||
33 | $encryptor::set_cost(15); |
||
34 | |||
35 | $this->assertEquals(15, $encryptor::get_cost()); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * |
||
40 | */ |
||
41 | public function testEncrypt() |
||
50 | } |
||
51 | } |
||
52 |