Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function testToTextsWithEncoding() |
||
42 | { |
||
43 | $texts = (new File(self::TEXT_FIXTURE_FILE_PATH, TextEncoding::UTF8))->toTexts(['ctx' => 'in tests']); |
||
44 | $this->assertEquals( |
||
45 | [ |
||
46 | new Text( |
||
47 | "mispelling1\n", |
||
48 | TextEncoding::UTF8, |
||
49 | [ |
||
50 | 'ctx' => 'in tests', |
||
51 | 'filePath' => realpath(self::TEXT_FIXTURE_FILE_PATH), |
||
52 | ] |
||
53 | ), |
||
54 | ], |
||
55 | $texts |
||
56 | ); |
||
59 |