X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2FHttpRequest_006.phpt;h=44afcdeb7510e44aab1484b17acbb49827c04a18;hb=a88a9ab5ca6e1aa2d2510c7ff3dda58d528602e5;hp=57eda667f72b906f436a7a0316d49a5f859ad619;hpb=ec355cdc412e40500bdaa5ba37b82905e212824b;p=m6w6%2Fext-http
diff --git a/tests/HttpRequest_006.phpt b/tests/HttpRequest_006.phpt
index 57eda66..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,26 +20,12 @@ var_dump($r->send());
echo "Done\n";
?>
--EXPECTF--
-%sTEST
+%aTEST
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(310) "string(294) "
+ string(309) "string(294) "
testMethod
@@ -58,28 +44,29 @@ 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
+ %a
}
+ ["parentMessage:protected"]=>
+ NULL
+}
+object(HttpMessage)#%d (%d) {
+ ["type:protected"]=>
+ int(2)
["body:protected"]=>
- string(310) "string(294) "
+ string(309) "string(294) "
testMethod
@@ -98,28 +85,29 @@ 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
+ %a
}
+ ["parentMessage:protected"]=>
+ NULL
+}
+object(HttpMessage)#%d (%d) {
+ ["type:protected"]=>
+ int(2)
["body:protected"]=>
- string(310) "string(294) "
+ string(309) "string(294) "
testMethod
@@ -138,7 +126,22 @@ 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) {
+ %a
+ }
+ ["parentMessage:protected"]=>
+ NULL
}
Done