| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function testMethodNumberOfRule() |
||
| 21 | { |
||
| 22 | $output = $this |
||
| 23 | ->runPhpmd('Tests/Test.php', 'test.xml') |
||
| 24 | ->getOutput(); |
||
| 25 | |||
| 26 | $this->assertContains('Tests/Test.php:37 4 mocks are found in this test. Try to reduce the mocks to 3 or less.', $output); |
||
| 27 | $this->assertContains('Tests/Test.php:52 6 asserts are found in this test. Try to reduce the asserts to 5 or less.', $output); |
||
| 28 | } |
||
| 29 | |||
| 45 |