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