示例#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 Util::toQueryString($queryStringParams);
 }
示例#2
0
 public function testToQueryString()
 {
     $option = array("a" => "b");
     $this->assertEquals('a=b', Util::toQueryString($option));
 }