* renaming tests
[m6w6/ext-http] / tests / send_file_004.phpt
diff --git a/tests/send_file_004.phpt b/tests/send_file_004.phpt
new file mode 100644 (file)
index 0000000..a9da0b1
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+http_send_file() NUM-NIL range
+--SKIPIF--
+<?php 
+include 'skip.inc';
+?>
+--ENV--
+HTTP_RANGE=bytes=1000-
+--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 1000-1009/1010
+
+123456789