projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
6086d2a
)
- add test
author
Michael Wallner
<mike@php.net>
Fri, 24 Feb 2006 20:32:08 +0000
(20:32 +0000)
committer
Michael 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]
patch
|
blob
diff --git a/tests/request_put_data.phpt
b/tests/request_put_data.phpt
new file mode 100644
(file)
index 0000000..
b8a5a3c
--- /dev/null
+++ b/
tests/request_put_data.phpt
@@ -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