예제 #1
0
 public function testDeleteMoveCopy()
 {
     $key2 = 'testOp2' . getTid();
     $key3 = 'testOp3' . getTid();
     RSUtils::Qiniu_RS_Delete($this->client, $this->bucket, $key2);
     RSUtils::Qiniu_RS_Delete($this->client, $this->bucket, $key3);
     $err = RSUtils::Qiniu_RS_Copy($this->client, $this->bucket, $this->key, $this->bucket, $key2);
     $this->assertNull($err);
     $err = RSUtils::Qiniu_RS_Move($this->client, $this->bucket, $key2, $this->bucket, $key3);
     $this->assertNull($err);
     $err = RSUtils::Qiniu_RS_Delete($this->client, $this->bucket, $key3);
     $this->assertNull($err);
     $err = RSUtils::Qiniu_RS_Delete($this->client, $this->bucket, $key2);
     $this->assertNotNull($err, "delete key2 false");
 }