예제 #1
0
 /**
  * 生成query_string
  *
  * @param mixed $options
  * @return string
  */
 private function generateQueryString($options)
 {
     //请求参数
     $queryStringParams = array();
     if (isset($options[self::OSS_QUERY_STRING])) {
         $queryStringParams = array_merge($queryStringParams, $options[self::OSS_QUERY_STRING]);
     }
     return OssUtil::toQueryString($queryStringParams);
 }
예제 #2
0
 public function testToQueryString()
 {
     $option = array("a" => "b");
     $this->assertEquals('a=b', OssUtil::toQueryString($option));
 }