cdnManager = new CdnManager($testAuth); $this->encryptKey = $timestampAntiLeechEncryptKey; $this->imgUrl = $customDomain . '/sdktest.png'; } public function testCreateTimestampAntiLeechUrl() { $signUrl = $this->cdnManager->createTimestampAntiLeechUrl($this->imgUrl, $this->encryptKey, 3600); $response = Client::get($signUrl); $this->assertEquals($response->statusCode, 200); $this->assertNull($response->error); } }