/** * @depends testUploadFile * @throws CrcFailedException * @throws UnexpectedHttpStatusException * @throws Exception */ public function testSignUrl() { $file = new File('test.txt'); $file->setLocalName($this->testFileName); $file->setContentType(); $file->setSize(); $this->service->uploadFile($this->container, $file); //$this->service->setAccountSecretKey($this->containerSecretKey); $signedUrl = (new OfflineStorageService())->signFileDownloadLink($this->containerUrl . '/' . $file->getServerName(), time() + 600, $this->containerSecretKey); //No exception is expected here (new Client())->get($signedUrl); }