This commit is contained in:
2024-01-11 13:20:58 +00:00
parent c00c6d1dab
commit 4c2e559bab
3 changed files with 45 additions and 13 deletions

View File

@@ -33,7 +33,9 @@ class MultiDownloaderClientTest extends TestCase
{
$client = new MultiDownloaderClient();
$response = $client->downloadAsString($this->testFiles());
$client->setFiles($this->testFiles());
$response = $client->downloadAsString();
$md5 = md5($response);
@@ -46,7 +48,8 @@ class MultiDownloaderClientTest extends TestCase
$path = sys_get_temp_dir() . '/testDownloadTo.zip';
$client->downloadTo($path, $this->testFiles());
$client->setFiles($this->testFiles());
$client->downloadTo($path);
$md5 = md5_file($path);
@@ -65,7 +68,10 @@ class MultiDownloaderClientTest extends TestCase
public function testForm()
{
echo (new MultiDownloaderClient())->htmlForm($this->testFiles());
$client = new MultiDownloaderClient();
$client->setFiles($this->testFiles());
echo $client->htmlForm($this->testFiles());
}
public function testApiKeyParam()