Skip to content

Commit cd542c0

Browse files
committed
x
1 parent 06f382c commit cd542c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/IoTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ public function testPutFile()
2323
$putExtra = new Qiniu_PutExtra();
2424
$putExtra->CheckCrc = 1;
2525
list($ret, $err) = Qiniu_PutFile($upToken, $key, __file__, $putExtra);
26+
$this->assertNull($err);
2627
$this->assertArrayHasKey('hash', $ret);
28+
var_dump($ret);
29+
30+
list($ret, $err) = Qiniu_RS_Stat($this->client, $this->bucket, $key);
2731
$this->assertNull($err);
32+
var_dump($ret);
2833

2934
$err = Qiniu_RS_Delete($this->client, $this->bucket, $key);
3035
$this->assertNull($err);
@@ -38,8 +43,8 @@ public function testPut()
3843
$putPolicy = new Qiniu_RS_PutPolicy($this->bucket);
3944
$upToken = $putPolicy->Token(null);
4045
list($ret, $err) = Qiniu_Put($upToken, $key, "hello world!", null);
41-
$this->assertArrayHasKey('hash', $ret);
4246
$this->assertNull($err);
47+
$this->assertArrayHasKey('hash', $ret);
4348

4449
$err = Qiniu_RS_Delete($this->client, $this->bucket, $key);
4550
$this->assertNull($err);

0 commit comments

Comments
 (0)