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 e60e5aa0a1a4b75c579e880ba695b541ceb6ce68..a69254b38c84863648746b91e3ce57df4560eda1 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";