skip on older libcurl
authorMichael Wallner <mike@php.net>
Thu, 19 Feb 2015 19:34:09 +0000 (20:34 +0100)
committerMichael Wallner <mike@php.net>
Thu, 19 Feb 2015 19:34:09 +0000 (20:34 +0100)
tests/client019.phpt

index e60e5aa..a69254b 100644 (file)
@@ -4,13 +4,16 @@ client proxy - send proxy headers for a proxy request
 <?php 
 include "skipif.inc";
 skip_client_test();
+$client = new http\Client("curl");
+array_key_exists("proxyheader", $client->getAvailableOptions())
+       or die("skip need libcurl with CUTLOPT_PROXYHEADER support\n");
 ?>
 --FILE--
 <?php
 
 include "helper/server.inc";
 
-echo "Test\n";
+echo "Test\n";var_dump((new http\Client)->getAvailableOptions());
 
 server("proxy.inc", function($port, $stdin, $stdout, $stderr) {
        echo "Server on port $port\n";