Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function testGetLogMessage(): void |
||
15 | { |
||
16 | $_SERVER['REMOTE_ADDR'] = '0.0.0.0'; |
||
17 | $log = Logging::getLogMessage('user', 'ok'); |
||
18 | $this->assertEquals('user authenticated: user from 0.0.0.0', $log); |
||
19 | $log = Logging::getLogMessage('user', 'error'); |
||
20 | $this->assertEquals('user denied: user (error) from 0.0.0.0', $log); |
||
21 | } |
||
23 |