| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 58 | public function testReviewInvalidLines($input, array $expectErrorLines) { |
||
| 59 | $map = [ |
||
| 60 | '\r' => "\r", |
||
| 61 | '\n' => "\n", |
||
| 62 | ]; |
||
| 63 | |||
| 64 | $input = str_replace("\n", '', $input); |
||
| 65 | $input = strtr($input, $map); |
||
| 66 | |||
| 67 | $report = $this->process($input); |
||
| 68 | $errorLines = []; |
||
| 69 | foreach ($report as $message) { |
||
| 70 | $errorLines[] = $message->getLine(); |
||
| 71 | } |
||
| 72 | |||
| 73 | $this->assertEquals($expectErrorLines, $errorLines); |
||
| 74 | } |
||
| 75 | |||
| 77 |