X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2FHttpRequest_004.phpt;h=313a4dc137ba93026004184230e066c468708d30;hp=f6094bb03580879b78e58890c5541795606c2547;hb=d7ce6cca59bb57636f075048fc3ff48038c3e45e;hpb=b9045f99a675bcdf7d8f96a8ffb4885459f39f63 diff --git a/tests/HttpRequest_004.phpt b/tests/HttpRequest_004.phpt index f6094bb..313a4dc 100644 --- a/tests/HttpRequest_004.phpt +++ b/tests/HttpRequest_004.phpt @@ -15,7 +15,7 @@ $fields = array( ); echo "\nFirst Request\n"; -$r = new HttpRequest('http://dev.iworks.at/.print_request.php', HttpRequest::METH_POST); +$r = new HttpRequest('http://dev.iworks.at/ext-http/.print_request.php', HttpRequest::METH_POST); $r->setPostFields($fields[0]); $r->addPostFields($fields[1]); var_dump($r->send()->getBody()); @@ -39,10 +39,10 @@ var_dump($fields); echo "Done\n"; ?> --EXPECTF-- -%sTEST +%aTEST First Request -string(150) "Array +string(%d) "Array ( [int] => 1 [dbl] => 3.1415926535898 @@ -50,7 +50,6 @@ string(150) "Array [nil] => ) string(44) "int=1&dbl=3.1415926535898&str=something&nil=" - " array(2) { [0]=> @@ -70,7 +69,7 @@ array(2) { } Second Request -string(270) "Array +string(%d) "Array ( [0] => Array ( @@ -85,8 +84,7 @@ string(270) "Array ) ) -string(56) "0[int]=1&0[dbl]=3.1415926535898&1[str]=something&1[nil]=" - +string(72) "0%5Bint%5D=1&0%5Bdbl%5D=3.1415926535898&1%5Bstr%5D=something&1%5Bnil%5D=" " array(2) { [0]=> @@ -106,7 +104,7 @@ array(2) { } Third Request -string(287) "Array +string(%d) "Array ( [0] => Array ( @@ -122,8 +120,7 @@ string(287) "Array [x] => X ) -string(60) "0[int]=1&0[dbl]=3.1415926535898&1[str]=something&1[nil]=&x=X" - +string(76) "0%5Bint%5D=1&0%5Bdbl%5D=3.1415926535898&1%5Bstr%5D=something&1%5Bnil%5D=&x=X" " array(2) { [0]=> @@ -143,8 +140,7 @@ array(2) { } Fourth Request -string(14) "string(0) "" - +string(13) "string(0) "" " array(2) { [0]=>