buildBatchCopy() 공개 정적인 메소드

public static buildBatchCopy ( $source_bucket, $key_pairs, $target_bucket )
예제 #1
0
파일: BucketTest.php 프로젝트: miecu/YouPan
 public function testBatchCopy()
 {
     $key = 'copyto' . rand();
     $ops = BucketManager::buildBatchCopy($this->bucketName, array($this->key => $key), $this->bucketName);
     list($ret, $error) = $this->bucketManager->batch($ops);
     $this->assertEquals(200, $ret[0]['code']);
     $ops = BucketManager::buildBatchDelete($this->bucketName, array($key));
     list($ret, $error) = $this->bucketManager->batch($ops);
     $this->assertEquals(200, $ret[0]['code']);
 }