Skip to content

Commit e7e1709

Browse files
committed
add test
1 parent e251905 commit e7e1709

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Qiniu/Tests/ResumeUpTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ public function test4ML()
2929
unlink($tempFile);
3030
}
3131

32+
public function test4ML2()
33+
{
34+
$key = 'resumePutFile4ML';
35+
$zone = new Zone('http://up.fake.com', 'http://up.qiniu.com');
36+
$cfg = new Config($zone);
37+
$upManager = new UploadManager($cfg);
38+
$token = $this->auth->uploadToken($this->bucketName, $key);
39+
$tempFile = qiniuTempFile(4*1024*1024+10);
40+
list($ret, $error) = $upManager->putFile($token, $key, $tempFile);
41+
$this->assertNull($error);
42+
$this->assertNotNull($ret['hash']);
43+
unlink($tempFile);
44+
}
3245
// public function test8M()
3346
// {
3447
// $key = 'resumePutFile8M';

0 commit comments

Comments
 (0)