- add test
authorMichael Wallner <mike@php.net>
Fri, 24 Feb 2006 20:32:08 +0000 (20:32 +0000)
committerMichael Wallner <mike@php.net>
Fri, 24 Feb 2006 20:32:08 +0000 (20:32 +0000)
tests/request_put_data.phpt [new file with mode: 0644]

diff --git a/tests/request_put_data.phpt b/tests/request_put_data.phpt
new file mode 100644 (file)
index 0000000..b8a5a3c
--- /dev/null
@@ -0,0 +1,19 @@
+--TEST--
+http_put_data()
+--SKIPIF--
+<?php
+include 'skip.inc';
+skipif(!http_support(HTTP_SUPPORT_REQUESTS), "need request support");
+?>
+--FILE--
+<?php
+echo "-TEST\n";
+
+var_dump(str_repeat("abc", 6000) === http_parse_message(http_put_data("http://dev.iworks.at/.print_put.php5", str_repeat("abc", 6000/* > CURLBUF_SIZE */)))->body);
+
+echo "Done\n";
+?>
+--EXPECTF--
+%sTEST
+bool(true)
+Done