- extend & fixup test suite
[m6w6/ext-http] / tests / send_data_011.phpt
diff --git a/tests/send_data_011.phpt b/tests/send_data_011.phpt
new file mode 100644 (file)
index 0000000..9506078
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+http_send_data() last modified caching
+--SKIPIF--
+<?php 
+include 'skip.inc';
+checkcgi();
+checkmin(5.1);
+?>
+--FILE--
+<?php
+http_cache_last_modified(-5);
+http_send_data("abc\n");
+?>
+--EXPECTF--
+X-Powered-By: PHP/%s
+Cache-Control: private, must-revalidate, max-age=0
+Last-Modified: %s, %d %s %d %d:%d:%d GMT
+Accept-Ranges: bytes
+Content-Length: 4
+Content-type: %s
+
+abc