| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 56 | public function testReplaceInvalidLines($input, $expect) { |
||
| 57 | $map = [ |
||
| 58 | '\r' => "\r", |
||
| 59 | '\n' => "\n", |
||
| 60 | ]; |
||
| 61 | |||
| 62 | |||
| 63 | $input = str_replace("\n", '', $input); |
||
| 64 | $expect = str_replace("\n", '', $expect); |
||
| 65 | $input = strtr($input, $map); |
||
| 66 | |||
| 67 | $output = $this->convert($input); |
||
| 68 | |||
| 69 | $output = strtr($output, array_flip($map)); |
||
| 70 | $this->assertEquals($expect, $output); |
||
| 71 | |||
| 72 | } |
||
| 73 | |||
| 83 |