- extend & fixup test suite
[m6w6/ext-http] / tests / send_file_010.phpt
diff --git a/tests/send_file_010.phpt b/tests/send_file_010.phpt
new file mode 100644 (file)
index 0000000..20b853a
--- /dev/null
@@ -0,0 +1,23 @@
+--TEST--
+http_send_file() NIL-NUM range
+--SKIPIF--
+<?php 
+include 'skip.inc';
+checkcgi();
+checkmin(5.1);
+?>
+--ENV--
+HTTP_RANGE=bytes=-9
+--FILE--
+<?php
+http_send_file('data.txt');
+?>
+--EXPECTF--
+Status: 206
+X-Powered-By: PHP/%s
+Accept-Ranges: bytes
+Content-Range: bytes 1001-1009/1010
+Content-Length: 9
+Content-type: %s
+
+23456789