fix ZMRequestTest wrong assertion

This commit is contained in:
sunxyw
2022-12-31 20:22:55 +08:00
parent a62e950870
commit 3f26648a3c
3 changed files with 14 additions and 10 deletions

View File

@@ -24,7 +24,9 @@ class ZMRequestTest extends TestCase
public function testGet()
{
$r = ZMRequest::get('http://ip.zhamao.xin');
$this->assertStringContainsString('114', $r);
$r = ZMRequest::get('http://httpbin.org/get', [
'X-Test' => '123',
]);
$this->assertStringContainsString('123', $r);
}
}