--TEST--
HttpRequest XMLRPC
--SKIPIF--
--FILE--
setContentType('text/xml');
$r->setBody(xmlrpc_encode_request('testMethod', array('foo' => 'bar')));
var_dump($r->send());
var_dump($r->send());
var_dump($r->send());
echo "Done\n";
?>
--EXPECTF--
%aTEST
object(HttpMessage)#%d (%d) {
["type:protected"]=>
int(2)
["body:protected"]=>
string(309) "string(294) "
testMethod
foo
bar
"
"
["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
}
object(HttpMessage)#%d (%d) {
["type:protected"]=>
int(2)
["body:protected"]=>
string(309) "string(294) "
testMethod
foo
bar
"
"
["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
}
object(HttpMessage)#%d (%d) {
["type:protected"]=>
int(2)
["body:protected"]=>
string(309) "string(294) "
testMethod
foo
bar
"
"
["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