Пример #1
0
 public function testMkzip()
 {
     global $testAuth;
     $pfop = new PersistentFop($testAuth, 'testres', 'sdktest', true);
     $urls = array('http://testres.qiniudn.com/gogopher.jpg' => 'g.jpg', 'http://testres.qiniudn.com/gogopher.jpg');
     list($id, $error) = $pfop->mkzip('sintel_trailer.mp4', $urls, 'phpsdk', 'mkziptest2.zip');
     $this->assertNull($error);
     list($status, $error) = PersistentFop::status($id);
     $this->assertNotNull($status);
     $this->assertNull($error);
 }