X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2FHttpRequest_006.phpt;h=24ee8a1ab42b8e1b676de79b7e3449c1b94e2d86;hb=e29a410679b63b8f96b6890d1418f39d9ed489cc;hp=5f933b7248a14e5c5fd89eed9d1219586cf5175f;hpb=26591cefa8d85dced14547a0fb621b9a289ef2de;p=m6w6%2Fext-http diff --git a/tests/HttpRequest_006.phpt b/tests/HttpRequest_006.phpt index 5f933b7..24ee8a1 100644 --- a/tests/HttpRequest_006.phpt +++ b/tests/HttpRequest_006.phpt @@ -10,9 +10,9 @@ checkcls('HttpRequest'); setContentType('text/xml'); -$r->setRawPostData(xmlrpc_encode_request('testMethod', array('foo' => 'bar'))); +$r->setBody(xmlrpc_encode_request('testMethod', array('foo' => 'bar'))); var_dump($r->send()); var_dump($r->send()); var_dump($r->send()); @@ -24,20 +24,6 @@ echo "Done\n"; object(HttpMessage)#%d (%d) { ["type:protected"]=> int(2) - ["httpVersion:protected"]=> - float(1.1) - ["responseCode:protected"]=> - int(200) - ["responseStatus:protected"]=> - string(2) "OK" - ["requestMethod:protected"]=> - string(0) "" - ["requestUri:protected"]=> - string(0) "" - ["headers:protected"]=> - array(6) { - %s - } ["body:protected"]=> string(309) "string(294) " @@ -59,24 +45,26 @@ object(HttpMessage)#%d (%d) { " " -} -object(HttpMessage)#%d (%d) { - ["type:protected"]=> - int(2) - ["httpVersion:protected"]=> - float(1.1) - ["responseCode:protected"]=> - int(200) - ["responseStatus:protected"]=> - string(2) "OK" ["requestMethod:protected"]=> string(0) "" - ["requestUri:protected"]=> + ["requestUrl:protected"]=> string(0) "" + ["responseStatus:protected"]=> + string(2) "OK" + ["responseCode:protected"]=> + int(200) + ["httpVersion:protected"]=> + float(1.1) ["headers:protected"]=> array(6) { %s } + ["parentMessage:protected"]=> + NULL +} +object(HttpMessage)#%d (%d) { + ["type:protected"]=> + int(2) ["body:protected"]=> string(309) "string(294) " @@ -98,24 +86,26 @@ object(HttpMessage)#%d (%d) { " " -} -object(HttpMessage)#%d (%d) { - ["type:protected"]=> - int(2) - ["httpVersion:protected"]=> - float(1.1) - ["responseCode:protected"]=> - int(200) - ["responseStatus:protected"]=> - string(2) "OK" ["requestMethod:protected"]=> string(0) "" - ["requestUri:protected"]=> + ["requestUrl:protected"]=> string(0) "" + ["responseStatus:protected"]=> + string(2) "OK" + ["responseCode:protected"]=> + int(200) + ["httpVersion:protected"]=> + float(1.1) ["headers:protected"]=> array(6) { %s } + ["parentMessage:protected"]=> + NULL +} +object(HttpMessage)#%d (%d) { + ["type:protected"]=> + int(2) ["body:protected"]=> string(309) "string(294) " @@ -137,5 +127,21 @@ object(HttpMessage)#%d (%d) { " " + ["requestMethod:protected"]=> + string(0) "" + ["requestUrl:protected"]=> + string(0) "" + ["responseStatus:protected"]=> + string(2) "OK" + ["responseCode:protected"]=> + int(200) + ["httpVersion:protected"]=> + float(1.1) + ["headers:protected"]=> + array(6) { + %s + } + ["parentMessage:protected"]=> + NULL } Done