public function testRputFile() { if (getTestEnv() == "travis") { return; } $key = 'tmp/testRputFile' . getTid(); $err = RSUtils::Qiniu_RS_Delete($this->client, $this->bucket, $key); list($ret, $err) = RSUtils::Qiniu_RS_RputFile($this->client, $this->bucket, $key, __FILE__, null); $this->assertNull($err); var_dump($ret); $this->assertArrayHasKey('hash', $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); }