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