123456789101112131415161718192021222324252627282930 |
- <?php
- include_once '../BaseTest.php';
- class HttpHelperTest extends BaseTest
- {
- public function testCurl()
- {
- $httpResponse = HttpHelper::curl("ecs.aliyuncs.com");
- $this->assertEquals(400, $httpResponse->getStatus());
- $this->assertNotNull($httpResponse->getBody());
- }
- }
|