X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2FHttpRequest_006.phpt;h=44afcdeb7510e44aab1484b17acbb49827c04a18;hb=6df516595ca42f9b2bdcbb52c863c430fae450d4;hp=8996166fad6f060faaf09e66a088dcfc91f3e4c1;hpb=5ecd200ee2e3d887f0393948aec1914867e64293;p=m6w6%2Fext-http diff --git a/tests/HttpRequest_006.phpt b/tests/HttpRequest_006.phpt index 8996166..44afcde 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()); @@ -20,12 +20,12 @@ var_dump($r->send()); echo "Done\n"; ?> --EXPECTF-- -%sTEST +%aTEST object(HttpMessage)#%d (%d) { ["type:protected"]=> int(2) ["body:protected"]=> - string(309) "string(294) " + string(309) "string(294) " testMethod @@ -57,7 +57,7 @@ object(HttpMessage)#%d (%d) { float(1.1) ["headers:protected"]=> array(6) { - %s + %a } ["parentMessage:protected"]=> NULL @@ -66,7 +66,7 @@ object(HttpMessage)#%d (%d) { ["type:protected"]=> int(2) ["body:protected"]=> - string(309) "string(294) " + string(309) "string(294) " testMethod @@ -98,7 +98,7 @@ object(HttpMessage)#%d (%d) { float(1.1) ["headers:protected"]=> array(6) { - %s + %a } ["parentMessage:protected"]=> NULL @@ -107,7 +107,7 @@ object(HttpMessage)#%d (%d) { ["type:protected"]=> int(2) ["body:protected"]=> - string(309) "string(294) " + string(309) "string(294) " testMethod @@ -139,7 +139,7 @@ object(HttpMessage)#%d (%d) { float(1.1) ["headers:protected"]=> array(6) { - %s + %a } ["parentMessage:protected"]=> NULL