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