| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function testOutput() |
||
| 18 | { |
||
| 19 | $file1 = 'src/ArgParser.php'; |
||
| 20 | |||
| 21 | $lines = $this->phan->parseLines(); |
||
| 22 | |||
| 23 | $this->assertCount(2, $lines); |
||
| 24 | |||
| 25 | $this->assertContains( |
||
| 26 | 'Argument 1 (string) is int but \strlen() takes string', |
||
| 27 | current($this->phan->getErrorsOnLine($file1, 35)) |
||
|
|
|||
| 28 | ); |
||
| 29 | $this->assertEquals( |
||
| 30 | [], |
||
| 31 | $this->phan->getErrorsOnLine($file1, 30) |
||
| 32 | ); |
||
| 40 |