X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fclient022.phpt;h=a59971ccbcaccb7b99bdac8e83ece4c51ede3cbd;hb=e1d5ca36e13696a2e87b618165669fc7c53709c1;hp=e3f7f118812a86cc1faf11a4fd02615fbbfbc553;hpb=43a9a6f8cb56e25c3770d652ce77045f89f68ca6;p=m6w6%2Fext-http diff --git a/tests/client022.phpt b/tests/client022.phpt index e3f7f11..a59971c 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(); });