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()); }
/** * {@inheritdoc} */ public function delete() { $this->file->delete(); }