X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=tests%2FHttpRequest_002.phpt;h=f6f0f7439e6f5797d1fb5a7742152e2577e93c92;hb=acc6833d4edb16c0fc4b82c1b47ab00aedec62ce;hp=56006a8af8e3e2118095b04d0040811f04d5cbc9;hpb=3413573a33f8213ba60550f8f184200eea72d111;p=m6w6%2Fext-http diff --git a/tests/HttpRequest_002.phpt b/tests/HttpRequest_002.phpt index 56006a8..f6f0f74 100644 --- a/tests/HttpRequest_002.phpt +++ b/tests/HttpRequest_002.phpt @@ -3,10 +3,13 @@ HttpRequest GET/POST --SKIPIF-- (int) PHP_VERSION) and die('skip PHP5 is required for Http classes'); +checkver(5); +checkcls('HttpRequest'); +checkurl('www.google.com'); ?> --FILE-- send()); print_r($r->getResponseInfo()); @@ -18,9 +21,7 @@ var_dump($r->getResponseMessage()->getResponseCode()); var_dump(false != strstr($r->getResponseBody(), "Not Implemented")); ?> --EXPECTF-- -Content-type: text/html -X-Powered-By: PHP/%s - +%sTEST bool(true) Array ( @@ -46,9 +47,9 @@ Array [content_length_upload] => %d [content_type] => %s [httpauth_avail] => %d - [proxyauth_avail] => %d - [num_connects] => %d + [proxyauth_avail] => %s ) int(501) int(501) bool(true) +