mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
fix ZMRequestTest wrong assertion
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user