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