--TEST--
HttpRequest XMLRPC
--SKIPIF--
--FILE--
setContentType('text/xml');
$r->setRawPostData(xmlrpc_encode_request('testMethod', array('foo' => 'bar')));
var_dump($r->send());
var_dump($r->send());
var_dump($r->send());
echo "Done\n";
?>
--EXPECTF--
%sTEST
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) ""
["requestUrl:protected"]=>
string(0) ""
["headers:protected"]=>
array(6) {
%s
}
["body:protected"]=>
string(309) "string(294) "
testMethod
foo
bar
"
"
}
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) ""
["requestUrl:protected"]=>
string(0) ""
["headers:protected"]=>
array(6) {
%s
}
["body:protected"]=>
string(309) "string(294) "
testMethod
foo
bar
"
"
}
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) ""
["requestUrl:protected"]=>
string(0) ""
["headers:protected"]=>
array(6) {
%s
}
["body:protected"]=>
string(309) "string(294) "
testMethod
foo
bar
"
"
}
Done