5.3->5.2.5
[m6w6/ext-http] / tests / HttpRequest_006.phpt
index 68c3ffecd84b420a478e2477f7d7a6a8709cb1e1..44afcdeb7510e44aab1484b17acbb49827c04a18 100644 (file)
@@ -10,7 +10,7 @@ checkcls('HttpRequest');
 <?php
 echo "-TEST\n";
 
-$r = new HttpRequest('http://dev.iworks.at/.print_request.php', HTTP_METH_POST);
+$r = new HttpRequest('http://dev.iworks.at/ext-http/.print_request.php', HTTP_METH_POST);
 $r->setContentType('text/xml');
 $r->setBody(xmlrpc_encode_request('testMethod', array('foo' => 'bar')));
 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) "<?xml version="1.0" encoding="iso-8859-1"?>
+  string(309) "string(294) "<?xml version="1.0" encoding="iso-8859-1%s]>
 <methodCall>
 <methodName>testMethod</methodName>
 <params>
@@ -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) "<?xml version="1.0" encoding="iso-8859-1"?>
+  string(309) "string(294) "<?xml version="1.0" encoding="iso-8859-1%s]>
 <methodCall>
 <methodName>testMethod</methodName>
 <params>
@@ -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) "<?xml version="1.0" encoding="iso-8859-1"?>
+  string(309) "string(294) "<?xml version="1.0" encoding="iso-8859-1%s]>
 <methodCall>
 <methodName>testMethod</methodName>
 <params>
@@ -139,7 +139,7 @@ object(HttpMessage)#%d (%d) {
   float(1.1)
   ["headers:protected"]=>
   array(6) {
-    %s
+    %a
   }
   ["parentMessage:protected"]=>
   NULL