* renaming tests
[m6w6/ext-http] / tests / send_file_002.phpt
diff --git a/tests/send_file_002.phpt b/tests/send_file_002.phpt
new file mode 100644 (file)
index 0000000..5abf118
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+http_send_file() NUM-NUM range
+--SKIPIF--
+<?php 
+include 'skip.inc';
+?>
+--ENV--
+HTTP_RANGE=bytes=5-9
+--FILE--
+<?php
+http_send_file('data.txt');
+?>
+--EXPECTF--
+Status: 206
+Content-type: text/html
+X-Powered-By: PHP/%s
+Accept-Ranges: bytes
+Content-Range: bytes 5-9/1010
+
+56789
\ No newline at end of file