- implement accessors to messages response status text
[m6w6/ext-http] / tests / request_etag.phpt
diff --git a/tests/request_etag.phpt b/tests/request_etag.phpt
new file mode 100644 (file)
index 0000000..69b26d2
--- /dev/null
@@ -0,0 +1,21 @@
+--TEST--
+request etag
+--SKIPIF--
+<?php
+include 'skip.inc';
+skipif(!http_support(HTTP_SUPPORT_REQUESTS), "need request support");
+?>
+--FILE--
+<?php
+echo "-TEST\n";
+var_dump(http_get("http://dev.iworks.at/ext-http/etag", array("etag" => '"26ad3a-5-95eb19c0"')));
+echo "Done\n";
+?>
+--EXPECTF--
+%sTEST
+string(%d) "HTTP/1.1 304 Not Modified
+Date: %s
+Server: %s
+ETag: "26ad3a-5-95eb19c0"
+"
+Done
\ No newline at end of file