コード例 #1
0
 public function testPutFile()
 {
     $tmpfile = tempnam(sys_get_temp_dir(), 'OSS');
     file_put_contents($tmpfile, 'put file');
     $this->assertTrue($this->filesystem->putFile('1.txt', $tmpfile));
     $this->assertSame('put file', $this->filesystem->read('1.txt'));
     unlink($tmpfile);
     $this->filesystem->delete('1.txt');
 }