| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class HumbugLoaderTest extends TestCase |
||
| 9 | { |
||
| 10 | public function testCanMakeClass() |
||
| 11 | { |
||
| 12 | $humbug = new Humbug(__DIR__ . '/../fixtures/humbug.json'); |
||
| 13 | $invalidFiles = $humbug->parseLines(); |
||
| 14 | |||
| 15 | $this->assertEquals(1, count($invalidFiles)); |
||
| 16 | $file = 'src/DiffLineHandle/OldVersion/DiffStart.php'; |
||
| 17 | |||
| 18 | $this->assertContains( |
||
| 19 | 'Failed on escaped check', |
||
| 20 | current($humbug->getErrorsOnLine($file, 23)) |
||
| 21 | ); |
||
| 22 | $this->assertEquals( |
||
| 23 | [], |
||
| 24 | $humbug->getErrorsOnLine($file, 22) |
||
| 25 | ); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function testHandleFileNotFound() |
||
| 32 | } |
||
| 33 | |||
| 34 | public function testBadFormat() |
||
| 38 | } |
||
| 39 | } |
||
| 40 |