From: Michael Wallner Date: Wed, 25 May 2016 10:06:57 +0000 (+0200) Subject: fix tests for master X-Git-Tag: RELEASE_3_1_0_BETA1~16 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=9f18b5395f9c937105d698ce564920dc06dce8f5;ds=sidebyside fix tests for master --- diff --git a/tests/client008.phpt b/tests/client008.phpt index 98fc8f8..3f5641f 100644 --- a/tests/client008.phpt +++ b/tests/client008.phpt @@ -1,5 +1,5 @@ --TEST-- -client features +client configuration --SKIPIF-- append("Hello, my old fellow."); foreach (hash_algos() as $algo) { - if (strncmp($algo, "sha3-", 5)) { + if (strncmp($algo, "sha3-", 5) && strncmp($algo, "sha512/", 7)) { ini_set("http.etag.mode", $algo); printf("%10s: %s\n", $algo, diff --git a/tests/skipif.inc b/tests/skipif.inc index 4ab631e..770cf5d 100644 --- a/tests/skipif.inc +++ b/tests/skipif.inc @@ -21,7 +21,8 @@ function skip_client_test($message = "skip need a client driver\n") { } function skip_http2_test($message = "skip need http2 support (nghttpd in PATH)\n") { - if (defined("http\\Client\\Curl\\HTTP_VERSION_2_0")) { + if (defined("http\\Client\\Curl\\HTTP_VERSION_2_0") + && (http\Client\Curl\FEATURES & http\Client\Curl\Features\HTTP2)) { foreach (explode(":", $_ENV["PATH"]) as $path) { if (is_executable($path . "/nghttpd")) { return;