| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function testInlineIfRule() |
||
| 18 | { |
||
| 19 | $output = $this |
||
| 20 | ->runPhpmd('Service/GeneralManager.php', 'cleancode.xml') |
||
| 21 | ->getOutput(); |
||
| 22 | |||
| 23 | $this->assertContains('GeneralManager.php:17 Try to avoid using inline ifs. They conceal the complexity of your code. Furthermore they obstruct the expandability. Refactor your code and increase the readability.', $output); |
||
| 24 | $this->assertContains('GeneralManager.php:27 Try to avoid using inline ifs. They conceal the complexity of your code. Furthermore they obstruct the expandability. Refactor your code and increase the readability.', $output); |
||
| 25 | } |
||
| 26 | } |
||
| 27 |