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