Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testToTexts(): void |
||
16 | { |
||
17 | $texts = (new File(self::TEXT_FIXTURE_FILE_PATH))->toTexts(['ctx' => 'in tests']); |
||
18 | $this->assertEquals( |
||
19 | [ |
||
20 | new Text( |
||
21 | "mispelling1\n", |
||
22 | TextEncoding::ASCII, |
||
23 | [ |
||
24 | 'ctx' => 'in tests', |
||
25 | 'filePath' => realpath(self::TEXT_FIXTURE_FILE_PATH), |
||
26 | ] |
||
27 | ), |
||
28 | ], |
||
29 | iterator_to_array($texts) |
||
30 | ); |
||
57 |