| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | public function testReplaceInvalidLines($input, $expect) { |
||
| 55 | $map = [ |
||
| 56 | '\r' => "\r", |
||
| 57 | '\n' => "\n", |
||
| 58 | ]; |
||
| 59 | |||
| 60 | |||
| 61 | $input = str_replace("\n", '', $input); |
||
| 62 | $expect = str_replace("\n", '', $expect); |
||
| 63 | $input = strtr($input, $map); |
||
| 64 | $expect = strtr($expect, $map); |
||
| 65 | |||
| 66 | \Tests\Funivan\Cs\BaseTestCase::assertFixer(new LineEndingFixer(), $input, $expect); |
||
| 67 | } |
||
| 68 | |||
| 70 |