* renaming tests
[m6w6/ext-http] / tests / send_data_002.phpt
diff --git a/tests/send_data_002.phpt b/tests/send_data_002.phpt
new file mode 100644 (file)
index 0000000..60df2d8
--- /dev/null
@@ -0,0 +1,21 @@
+--TEST--
+http_send_data() NUM-NUM range
+--SKIPIF--
+<?php 
+include 'skip.inc';
+?>
+--ENV--
+HTTP_RANGE=bytes=5-6
+--FILE--
+<?php
+http_send_content_type('text/plain');
+http_send_data(str_repeat('123abc', 1000));
+?>
+--EXPECTF--
+Status: 206
+X-Powered-By: PHP/%s
+Content-Type: text/plain
+Accept-Ranges: bytes
+Content-Range: bytes 5-6/6000
+
+c1
\ No newline at end of file