X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2FHttpRequest_003.phpt;h=3ce4fcb65324607c0866f8b1523fe88c8ad79f7b;hp=d432c4358c0334468427f0d2a51beab91acea254;hb=6c4a552c1ad7b0018afb57a3d0028c2be166a30a;hpb=b2391aa3d1d4bf399b8b5586e9babc515955d96e diff --git a/tests/HttpRequest_003.phpt b/tests/HttpRequest_003.phpt index d432c43..3ce4fcb 100644 --- a/tests/HttpRequest_003.phpt +++ b/tests/HttpRequest_003.phpt @@ -3,17 +3,52 @@ HttpRequest SSL --SKIPIF-- --FILE-- '3', 'ssl' => array('version' => '3', 'verifyhost' => '1')); $r = new HttpRequest('https://ssl.arweb.info/iworks/data.txt'); +$r->setOptions($o); $r->send(); var_dump($r->getResponseBody()); +var_dump(is_object($r->getResponseMessage())); +var_dump(is_object($r->getResponseMessage())); +var_dump(is_object($r->getResponseMessage())); +var_dump($o); +$r->setOptions($o); +$r->send(); +var_dump($o); ?> --EXPECTF-- %sTEST string(10) "1234567890" +bool(true) +bool(true) +bool(true) +array(2) { + ["redirect"]=> + string(1) "3" + ["ssl"]=> + array(2) { + ["version"]=> + string(1) "3" + ["verifyhost"]=> + string(1) "1" + } +} +array(2) { + ["redirect"]=> + string(1) "3" + ["ssl"]=> + array(2) { + ["version"]=> + string(1) "3" + ["verifyhost"]=> + string(1) "1" + } +}