/** * */ public function testDelete() { $fileSystem = $this->getFileSystem(); $fileSystem->shouldReceive('exists')->once()->with('/sessions/123')->andReturn(true); $fileSystem->shouldReceive('isWritable')->once()->with('/sessions/123')->andReturn(true); $fileSystem->shouldReceive('delete')->once()->with('/sessions/123'); $file = new File($fileSystem, '/sessions'); $file->delete('123'); }