let DEV_2 be trunk
[m6w6/ext-http] / tests / envresponse003.phpt
diff --git a/tests/envresponse003.phpt b/tests/envresponse003.phpt
new file mode 100644 (file)
index 0000000..3bbf760
--- /dev/null
@@ -0,0 +1,24 @@
+--TEST--
+env response ranges
+--SKIPIF--
+<?php include "skipif.inc"; ?>
+--ENV--
+HTTP_RANGE=bytes=2-4
+--GET--
+a=b
+--FILE--
+<?php
+
+$r = new http\Env\Response;
+$r->setContentType("text/plain");
+$r->setContentDisposition(
+    array("attachment" => array(array("filename" => basename(__FILE__))))
+);
+$r->setBody(new http\Message\Body(fopen(__FILE__, "rb")));
+$r->send();
+
+?>
+--EXPECTHEADERS--
+Content-Type: text/plain
+--EXPECTF--
+php