Skip to content

Commit 0f913ae

Browse files
committed
pass through travis
1 parent c91090f commit 0f913ae

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/Qiniu/Storage/BucketManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ public function changeMime($bucket, $key, $mime)
201201
* [
202202
* "hash" => "<Hash string>",
203203
* "key" => "<Key string>"
204-
* ],
205-
* null
204+
* ],
205+
* null
206206
* ]
207207
*
208208
* 失败时: [
209209
* null,
210-
* Qiniu/Http/Error
210+
* Qiniu/Http/Error
211211
* ]
212212
* @link http://developer.qiniu.com/docs/v6/api/reference/rs/fetch.html
213213
*/

tests/Qiniu/Tests/BucketTest.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,20 @@ public function testPrefetch()
116116

117117
public function testFetch()
118118
{
119-
$error = $this->bucketManager->fetch(
119+
list($ret, $error) = $this->bucketManager->fetch(
120120
'http://developer.qiniu.com/docs/v6/sdk/php-sdk.html',
121121
$this->bucketName,
122122
'fetch.html'
123123
);
124+
$this->assertArrayHasKey('hash', $ret);
125+
$this->assertNull($error);
126+
127+
list($ret, $error) = $this->bucketManager->fetch(
128+
'http://developer.qiniu.com/docs/v6/sdk/php-sdk.html',
129+
$this->bucketName,
130+
''
131+
);
132+
$this->assertArrayHasKey('key', $ret);
124133
$this->assertNull($error);
125134
}
126135

0 commit comments

Comments
 (0)