testFiles); } public function testDownloadAsString() { $client = new MultiDownloaderClient(['apiKey' => 'test', 'apiSecret' => 'test']); $client->setFiles($this->testFiles()); $response = $client->downloadAsString(); $md5 = md5($response); $this->assertEquals('ea9726d2ecbe6b820899ba125bf0ae94', $md5); } public function testDownloadTo() { $client = new MultiDownloaderClient(['apiKey' => 'test', 'apiSecret' => 'test']); $path = sys_get_temp_dir() . '/testDownloadTo.zip'; $client->setFiles($this->testFiles()); $client->downloadTo($path); $md5 = md5_file($path); $this->assertFileExists($path); $this->assertEquals('ea9726d2ecbe6b820899ba125bf0ae94', $md5); } public function testForm() { $client = new MultiDownloaderClient(['apiKey' => 'test', 'apiSecret' => 'test']); $client->setFiles($this->testFiles()); echo $client->htmlForm($this->testFiles()); } }