You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
720 B
27 lines
720 B
<?php
|
|
namespace Qiniu\Tests;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
use Qiniu\Http\Client;
|
|
|
|
class DownloadTest extends TestCase
|
|
{
|
|
public function test()
|
|
{
|
|
global $testAuth;
|
|
$base_url = 'http://sdk.peterpy.cn/gogopher.jpg';
|
|
$private_url = $testAuth->privateDownloadUrl($base_url);
|
|
$response = Client::get($private_url);
|
|
$this->assertEquals(200, $response->statusCode);
|
|
}
|
|
|
|
public function testFop()
|
|
{
|
|
global $testAuth;
|
|
$base_url = 'http://sdk.peterpy.cn/gogopher.jpg?exif';
|
|
$private_url = $testAuth->privateDownloadUrl($base_url);
|
|
$response = Client::get($private_url);
|
|
$this->assertEquals(200, $response->statusCode);
|
|
}
|
|
}
|
|
|