Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
28 | public function testIPExtension() |
||
29 | { |
||
30 | $controller = Controller::curr(); |
||
31 | |||
32 | $model = new Test_CommonExtensions(); |
||
33 | $model->write(); |
||
34 | if ($controller) { |
||
|
|||
35 | $this->assertNotEmpty($model->IP); |
||
36 | } |
||
37 | |||
38 | $ip = '127.0.0.1'; |
||
39 | $model->IP = $ip; |
||
40 | $this->assertEquals($ip, $model->IP); |
||
41 | } |
||
43 |