X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient022.phpt;h=e813cdc0c953c018a044569526857e11cdb10d40;hp=255de083bb3522a2df2751795c2e5943963802dd;hb=0ccb6d6575f81affd97a78ba1a88641ad41b4b55;hpb=95c6c900d04096d332c422e3f597186b7184c5ab diff --git a/tests/client022.phpt b/tests/client022.phpt index 255de08..e813cdc 100644 --- a/tests/client022.phpt +++ b/tests/client022.phpt @@ -21,7 +21,9 @@ nghttpd(function($port) { "cainfo" => __DIR__."/helper/http2.crt", ] ]); - $client->enqueue(new http\Client\Request("GET", "https://localhost:$port")); + + $request = new http\Client\Request("GET", "https://localhost:$port"); + $client->enqueue($request); echo $client->send()->getResponse(); }); @@ -29,7 +31,7 @@ nghttpd(function($port) { ===DONE=== --EXPECTF-- Test -HTTP/2.0 200 +HTTP/2 200 %a