| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function provideTestData() |
||
| 19 | { |
||
| 20 | yield 'no escaping needed' => [ |
||
| 21 | 'LOREM', |
||
| 22 | 'LOREM', |
||
| 23 | ]; |
||
| 24 | yield 'backslashes are escaped' => [ |
||
| 25 | 'text contains backslash: \\', |
||
| 26 | 'text contains backslash: \\\\', |
||
| 27 | ]; |
||
| 28 | yield 'double quotes are escaped' => [ |
||
| 29 | 'text with "doublequotes" will be escaped', |
||
| 30 | 'text with \\"doublequotes\\" will be escaped' |
||
| 31 | ]; |
||
| 32 | yield 'semicolon and comma are escaped' => [ |
||
| 33 | 'text with , and ; will also be escaped', |
||
| 34 | 'text with \\, and \\; will also be escaped', |
||
| 35 | ]; |
||
| 36 | yield 'new lines are escaped' => [ |
||
| 37 | "Text with new\n line", |
||
| 38 | 'Text with new\\n line', |
||
| 39 | ]; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |