X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Frequest_put_data.phpt;h=a2887fd20f07c9222577d052c43ad581c7d13847;hb=a0414c8466220308c14e57abe15e66e0e17b7108;hp=b8a5a3c1e2ea0f3552645228c5190c174337ff76;hpb=a93c1059c61026dab25278d0839c44745fc117b6;p=m6w6%2Fext-http diff --git a/tests/request_put_data.phpt b/tests/request_put_data.phpt index b8a5a3c..a2887fd 100644 --- a/tests/request_put_data.phpt +++ b/tests/request_put_data.phpt @@ -9,11 +9,14 @@ skipif(!http_support(HTTP_SUPPORT_REQUESTS), "need request support"); CURLBUF_SIZE */)))->body); +$data = str_repeat("abc", 6000/* > CURLBUF_SIZE */); +$resp = http_put_data("http://dev.iworks.at/ext-http/.print_put.php5", $data); +$mess = http_parse_message($resp); +var_dump($data === $mess->body); echo "Done\n"; ?> --EXPECTF-- -%sTEST +%aTEST bool(true) Done