/** * Test getDownloadUrl() * * @return void */ public function testGetDownloadUrl() { $fileResource = new File($this->getMockedClient(new Response(200, ['Content-Type' => 'application/json'], '"https://some.example.com/some/url"'))); $downloadLink = $fileResource->getDownloadUrl(new Library(), new DirectoryItem()); // encapsulating quotes must be gone self::assertSame('https://some.example.com/some/url', $downloadLink); }