Example #1
0
 public function testCopy()
 {
     $to_copy = new LocalFile($this->driver, "{$this->filename}-to-copy");
     $copied = new LocalFile($this->driver, "{$this->filename}-copied");
     $this->assertFalse($copied->exists);
     $to_copy->create();
     $this->assertTrue($to_copy->copy($copied));
     $this->assertTrue($to_copy->exists);
     $this->assertTrue($copied->exists);
 }