function testSymlink() { $bucket = $this->getS3Bucket(); $s3 = $this->getS3Client(); $storage = new binarypool_storage_driver_s3($bucket['storage'], $s3, $this->getMockCache(), $this->time); $s3->setReturnValue('getObjectInfo', false); $s3->expectOnce('putObject', array(json_encode(array('link' => '../../hashing/index.xml', 'mtime' => $this->time)), 'bin.staticlocal.ch', 'test/downloaded/otherhash.link', S3::ACL_PUBLIC_READ, array(), 'application/x-symlink')); $s3->setReturnValue('putObject', true); $storage->symlink('../../hashing/index.xml', 'test/downloaded/otherhash'); }