Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
45 | public function testGetHashForFile() |
||
46 | { |
||
47 | $path = '/path/to/file'; |
||
48 | $contents = 'contents'; |
||
49 | |||
50 | $fileSystem = $this->prophesize(FilesystemInterface::class); |
||
51 | $fileSystem->read($path)->willReturn($contents); |
||
52 | |||
53 | $file = new FlySystemFile($fileSystem->reveal(), $path); |
||
54 | |||
55 | $this->assertSame(md5($contents), $file->md5()); |
||
56 | } |
||
57 | } |
||
58 |