/**
  * 初始化multi-part upload
  *
  * @param string $bucket Bucket名称
  * @param string $object Object名称
  * @param array $options Key-Value数组
  * @throws OssException
  * @return string 返回uploadid
  */
 public function initiateMultipartUpload($bucket, $object, $options = NULL)
 {
     $this->precheckCommon($bucket, $object, $options);
     $options[self::OSS_METHOD] = self::OSS_HTTP_POST;
     $options[self::OSS_BUCKET] = $bucket;
     $options[self::OSS_OBJECT] = $object;
     $options[self::OSS_SUB_RESOURCE] = 'uploads';
     $options[self::OSS_CONTENT] = '';
     if (!isset($options[self::OSS_CONTENT_TYPE])) {
         $options[self::OSS_CONTENT_TYPE] = $this->getMimeType($object);
     }
     if (!isset($options[self::OSS_HEADERS])) {
         $options[self::OSS_HEADERS] = array();
     }
     $response = $this->auth($options);
     $result = new InitiateMultipartUploadResult($response);
     return $result->getData();
 }
 public function testParseValidXml()
 {
     $response = new ResponseCore(array(), $this->validXml, 200);
     $result = new InitiateMultipartUploadResult($response);
     $this->assertEquals("0004B9894A22E5B1888A1E29F8236E2D", $result->getData());
 }