File "HttpHelperTest.php"
Full Path: /www/wwwroot/shphe-en.com/smsapi/api_sdk/tests/Core/Http/HttpHelperTest.php
File size: 427 bytes
MIME-type: --
Charset: utf-8
<?php
namespace Aliyun\Test\Core\Http;
use PHPUnit\Framework\TestCase;
use Aliyun\Core\Http\HttpHelper;
use Aliyun\Core\Config;
class HttpHelperTest extends TestCase
{
function setUp()
{
Config::load();
}
public function testCurl()
{
$httpResponse = HttpHelper::curl("ecs.aliyuncs.com");
$this->assertEquals(400,$httpResponse->getStatus());
$this->assertNotNull($httpResponse->getBody());
}
}