public function testRput() { if (getTestEnv() == "travis") { return; } $key = 'tmp/testRput' . getTid(); $err = RSUtils::Qiniu_RS_Delete($this->client, $this->bucket, $key); $reader = new \MockReader(); list($ret, $err) = RSUtils::Qiniu_RS_Rput($this->client, $this->bucket, $key, $reader, 5, null); $this->assertNull($err); var_dump($ret); $this->assertEquals($ret['hash'], "Fnvgeq9GDVk6Mj0Nsz2gW2S_3LOl"); 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); }