/** * @depends testPutObjectsWithUtf8Keys */ public function testCopiesObjects() { self::log("Copying the object"); $result = $this->client->copyObject(array('Bucket' => $this->bucket, 'Key' => 'copy-key', 'CopySource' => $this->bucket . '/' . self::TEST_KEY, 'MetadataDirective' => 'COPY', 'ServerSideEncryption' => 'AES256')); $this->assertNotEmpty($result['ETag']); $this->assertEquals('AES256', $result['ServerSideEncryption']); $this->assertNotEmpty($result['LastModified']); $this->client->waitUntil('object_exists', array('Bucket' => $this->bucket, 'Key' => 'copy-key')); }