public function testPutFile() { $key = 'tmp/testPutFile' . getTid(); $err = RSUtils::Qiniu_RS_Delete($this->client, $this->bucket, $key); $putExtra = new QiniuPutExtra(); $putExtra->CheckCrc = 1; list($ret, $err) = RSUtils::Qiniu_RS_PutFile($this->client, $this->bucket, $key, __FILE__, $putExtra); $this->assertNull($err); $this->assertArrayHasKey('hash', $ret); var_dump($ret); list($ret, $err) = RSUtils::Qiniu_RS_Stat($this->client, $this->bucket, $key); $this->assertNull($err); var_dump($ret); $err = RSUtils::Qiniu_RS_Delete($this->client, $this->bucket, $key); $this->assertNull($err); }