| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function testOutput() |
||
| 18 | { |
||
| 19 | |||
| 20 | $file1 = '/home/user/code/coverageChecker/vendor/symfony/console/Tests/Helper/SymfonyQuestionHelperTest.php'; |
||
| 21 | $file2 = '/home/user/code/coverageChecker/vendor/symfony/console/Tests/Helper/QuestionHelperTest.php'; |
||
| 22 | $expected = [ |
||
| 23 | $file1 => [ |
||
| 24 | 45 => ["Duplicate of $file2:58-60"], |
||
| 25 | 46 => ["Duplicate of $file2:58-60"], |
||
| 26 | 47 => ["Duplicate of $file2:58-60"], |
||
| 27 | ], |
||
| 28 | $file2 => [ |
||
| 29 | 58 => ["Duplicate of $file1:45-47"], |
||
| 30 | 59 => ["Duplicate of $file1:45-47"], |
||
| 31 | 60 => ["Duplicate of $file1:45-47"], |
||
| 32 | ], |
||
| 33 | ]; |
||
| 34 | |||
| 35 | $this->assertEquals($expected, $this->cpd->getLines()); |
||
| 36 | $this->assertFalse($this->cpd->isValidLine($file1, 45)); |
||
| 37 | $this->assertTrue($this->cpd->isValidLine($file1, 49)); |
||
| 38 | } |
||
| 39 | |||
| 45 |