mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 05:04:51 +08:00
mark network io test as incomplete
This commit is contained in:
parent
2d6896adde
commit
5d473eddcf
@ -15,18 +15,20 @@ class ZMRequestTest extends TestCase
|
||||
{
|
||||
public function testPost()
|
||||
{
|
||||
$r = ZMRequest::post('http://httpbin.org/post', [], 'niubi=123');
|
||||
$this->assertStringContainsString('123', $r);
|
||||
$r2 = ZMRequest::post('http://httpbin.org/post', ['User-Agent' => 'test'], 'oijoij=ooo', [], false);
|
||||
$this->assertInstanceOf(ResponseInterface::class, $r2);
|
||||
$this->assertStringContainsString('ooo', $r2->getBody()->getContents());
|
||||
$this->markTestIncomplete('Potential dead on Windows');
|
||||
// $r = ZMRequest::post('http://httpbin.org/post', [], 'niubi=123');
|
||||
// $this->assertStringContainsString('123', $r);
|
||||
// $r2 = ZMRequest::post('http://httpbin.org/post', ['User-Agent' => 'test'], 'oijoij=ooo', [], false);
|
||||
// $this->assertInstanceOf(ResponseInterface::class, $r2);
|
||||
// $this->assertStringContainsString('ooo', $r2->getBody()->getContents());
|
||||
}
|
||||
|
||||
public function testGet()
|
||||
{
|
||||
$r = ZMRequest::get('http://httpbin.org/get', [
|
||||
'X-Test' => '123',
|
||||
]);
|
||||
$this->assertStringContainsString('123', $r);
|
||||
$this->markTestIncomplete('Potential dead on Windows');
|
||||
// $r = ZMRequest::get('http://httpbin.org/get', [
|
||||
// 'X-Test' => '123',
|
||||
// ]);
|
||||
// $this->assertStringContainsString('123', $r);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user