public function exists()
{
return $this->filesystem->has($this->key);
}
public function testCreateAnDeleteFile() { $fs = $this->getFilesystem(); $filename = uniqid('test_'); $file = new File($filename, $fs); $this->assertFalse($file->exists()); $file->setContent('Hello'); $this->assertTrue($file->exists()); $file->delete(); $this->assertFalse($file->exists()); }