| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 8 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | View Code Duplication | public function testDetection() |
|
| 19 | { |
||
| 20 | $codeSnifferRunner = new CodeSnifferRunner(BlockPropertyCommentSniff::NAME); |
||
| 21 | |||
| 22 | $this->assertSame(0, $codeSnifferRunner->getErrorCountInFile(__DIR__ . '/correct.php')); |
||
| 23 | $this->assertSame(0, $codeSnifferRunner->getErrorCountInFile(__DIR__ . '/correct2.php')); |
||
| 24 | $this->assertSame(1, $codeSnifferRunner->getErrorCountInFile(__DIR__ . '/wrong.php')); |
||
| 25 | } |
||
| 26 | |||
| 37 |