X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient022.phpt;h=e813cdc0c953c018a044569526857e11cdb10d40;hp=e3f7f118812a86cc1faf11a4fd02615fbbfbc553;hb=0ccb6d6575f81affd97a78ba1a88641ad41b4b55;hpb=43a9a6f8cb56e25c3770d652ce77045f89f68ca6 diff --git a/tests/client022.phpt b/tests/client022.phpt index e3f7f11..e813cdc 100644 --- a/tests/client022.phpt +++ b/tests/client022.phpt @@ -18,10 +18,12 @@ nghttpd(function($port) { $client->setOptions([ "protocol" => http\Client\Curl\HTTP_VERSION_2_0, "ssl" => [ - "cafile" => __DIR__."/helper/http2.crt", + "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