public function testCopy()
 {
     $mock = $this->getS3Client();
     $this->expectVisibilityCall(Permission::READ, 'old', $mock);
     $mock->shouldReceive('headObject')->once()->andReturn(Mockery::self());
     $mock->shouldReceive('getAll')->once()->andReturn(['ContentLength' => 20, 'ContentType' => 'text/plain', 'StorageClass' => StorageClass::STANDARD]);
     $mock->shouldReceive('copyObject')->once()->andReturn(Mockery::self());
     $adapter = new Adapter($mock, 'bucketname');
     $result = $adapter->copy('old', 'new');
     $this->assertTrue($result);
 }
 public function testCopy()
 {
     $mock = $this->getS3Client();
     $this->expectVisibilityCall(Permission::READ, 'old', $mock);
     $mock->shouldReceive('copyObject')->once()->andReturn(Mockery::self());
     $adapter = new Adapter($mock, 'bucketname');
     $result = $adapter->copy('old', 'new');
     $this->assertTrue($result);
 }