예제 #1
0
 public function testBatchStat()
 {
     $key2 = 'testOp2' . getTid();
     RSUtils::Qiniu_RS_Delete($this->client, $this->bucket, $key2);
     $entries = array(new QiniuRSEntryPath($this->bucket, $this->key), new QiniuRSEntryPath($this->bucket, $key2));
     list($ret, $err) = RSUtils::Qiniu_RS_BatchStat($this->client, $entries);
     $this->assertNotNull($err);
     $this->assertEquals($ret[0]['code'], 200);
     $this->assertEquals($ret[1]['code'], 612);
 }