Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class FileTest extends TestCase |
||
12 | { |
||
13 | private const TEXT_FIXTURE_FILE_PATH = __DIR__ . '/../Fixtures/Text/mispelling1.txt'; |
||
14 | |||
15 | public function testToTexts(): void |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | public function testInvalidPath(): void |
||
34 | { |
||
35 | $this->expectException(FilesystemException::class); |
||
36 | iterator_to_array((new File('invalidPath'))->toTexts()); |
||
37 | } |
||
38 | |||
39 | public function testToTextsWithEncoding(): void |
||
54 | ); |
||
55 | } |
||
57 |