X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient022.phpt;fp=tests%2Fclient022.phpt;h=255de083bb3522a2df2751795c2e5943963802dd;hp=0000000000000000000000000000000000000000;hb=7b3c686de9ef70f2124136b5a1b8dffa7602a4d7;hpb=48c11a71a485ca29c47aebd601d8d77d9bfeb129 diff --git a/tests/client022.phpt b/tests/client022.phpt new file mode 100644 index 0000000..255de08 --- /dev/null +++ b/tests/client022.phpt @@ -0,0 +1,45 @@ +--TEST-- +client http2 +--SKIPIF-- + +--FILE-- +setOptions([ + "protocol" => http\Client\Curl\HTTP_VERSION_2_0, + "ssl" => [ + "cainfo" => __DIR__."/helper/http2.crt", + ] + ]); + $client->enqueue(new http\Client\Request("GET", "https://localhost:$port")); + echo $client->send()->getResponse(); +}); + +?> +===DONE=== +--EXPECTF-- +Test +HTTP/2.0 200 +%a + + + + + + HTTP2 + + + Nothing to see here. + + +===DONE===