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=e867316f1364f589eec67cc684703c874984430b;hpb=baff99d75b56868714f7f2ed1972b3baceb72014 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===