* adding tests
[m6w6/ext-http] / tests / 030_send_data.phpt
diff --git a/tests/030_send_data.phpt b/tests/030_send_data.phpt
new file mode 100644 (file)
index 0000000..301d45f
--- /dev/null
@@ -0,0 +1,14 @@
+--TEST--
+http_send_data()
+--SKIPIF--
+<?php 
+extension_loaded('http') or die('ext/http not available');
+strncasecmp(PHP_SAPI, 'CLI', 3) or die('cannot run tests with CLI');
+?>
+--FILE--
+<?php
+http_content_type('text/plain');
+http_send_data(str_repeat('123abc', 1));
+?>
+--EXPECTREGEX--
+.+\s+.+\s+(abc|[123abc]{,100000})
\ No newline at end of file