/** * 生成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); }
public function testToQueryString() { $option = array("a" => "b"); $this->assertEquals('a=b', OssUtil::toQueryString($option)); }