Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function testEmptyFileWillReturnEmptyArrayForGetContents() |
||
15 | { |
||
16 | $fileSystem = m::mock(FilesystemInterface::class); |
||
17 | $file = new FileNode($fileSystem, 'not/exists'); |
||
18 | |||
19 | $fileSystem->shouldReceive('has') |
||
20 | ->with('not/exists') |
||
21 | ->andReturn(false); |
||
22 | |||
23 | static::assertEquals([], $file->getContents()); |
||
24 | } |
||
25 | |||
42 |