- 4 etag tests using ob
[m6w6/ext-http] / tests / etag_mode_012.phpt
diff --git a/tests/etag_mode_012.phpt b/tests/etag_mode_012.phpt
new file mode 100644 (file)
index 0000000..235225d
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+ob sha1 etag
+--SKIPIF--
+<?php
+include 'skip.inc';
+checkcgi();
+?>
+--FILE--
+<?php
+ini_set('http.etag_mode', HTTP_ETAG_SHA1);
+http_cache_etag();
+print("abc\n");
+?>
+--EXPECTF--
+Content-type: %s
+X-Powered-By: PHP/%s
+Cache-Control: private, must-revalidate, max-age=0
+ETag: "03cfd743661f07975fa2f1220c5194cbaff48451"
+
+abc