Skip to content

Commit 3b7e141

Browse files
committed
uinit test fix
1 parent ae99f4d commit 3b7e141

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/IoTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function testPut_mime_save()
9191

9292
list($ret, $err) = Qiniu_RS_Stat($this->client, $this->bucket, $key);
9393
$this->assertNull($err);
94-
$this->assertEquals($ret['mimeType'], 'application/x-php');
94+
$this->assertEquals($ret['mimeType'], 'application/x-httpd-php');
9595
var_dump($ret);
9696

9797
$err = Qiniu_RS_Delete($this->client, $this->bucket, $key);

tests/RsTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ public function setUp()
1919

2020
public function testStat()
2121
{
22+
$putPolicy = new Qiniu_RS_PutPolicy($this->bucket . ":" . $this->key);
23+
$upToken = $putPolicy->Token(null);
24+
list($ret, $err) = Qiniu_PutFile($upToken, $this->key, __file__, null);
25+
$this->assertNull($err);
26+
Qiniu_RS_Delete($this->client, $this->bucket, $this->notExistKey);
2227
list($ret, $err) = Qiniu_RS_Stat($this->client, $this->bucket, $this->key);
2328
$this->assertArrayHasKey('hash', $ret);
2429
$this->assertNull($err);

0 commit comments

Comments
 (0)