- extend & fixup test suite
[m6w6/ext-http] / tests / etag_mode_033.phpt
diff --git a/tests/etag_mode_033.phpt b/tests/etag_mode_033.phpt
new file mode 100644 (file)
index 0000000..f87f3fa
--- /dev/null
@@ -0,0 +1,23 @@
+--TEST--
+md5 etag
+--SKIPIF--
+<?php
+include 'skip.inc';
+checkcgi();
+checkmin(5.1);
+?>
+--FILE--
+<?php
+ini_set('http.etag_mode', HTTP_ETAG_MD5);
+http_cache_etag();
+http_send_data("abc\n");
+?>
+--EXPECTF--
+X-Powered-By: PHP/%s
+Cache-Control: private, must-revalidate, max-age=0
+Accept-Ranges: bytes
+ETag: "0bee89b07a248e27c83fc3d5951213c1"
+Content-Length: 4
+Content-type: %s
+
+abc