Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
29 | public function testContentsOfFileCanBeRetrieved() |
||
30 | { |
||
31 | $path = '/path/to/file'; |
||
32 | $contents = 'contents'; |
||
33 | |||
34 | $fileSystem = $this->prophesize(FilesystemInterface::class); |
||
35 | $fileSystem->read($path)->willReturn($contents); |
||
36 | |||
37 | $file = new FlySystemFile($fileSystem->reveal(), $path); |
||
38 | |||
39 | $this->assertSame($contents, $file->getContents()); |
||
40 | } |
||
41 | |||
58 |