addfile
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user