* renaming tests
[m6w6/ext-http] / tests / date_001.phpt
diff --git a/tests/date_001.phpt b/tests/date_001.phpt
new file mode 100644 (file)
index 0000000..359dc55
--- /dev/null
@@ -0,0 +1,17 @@
+--TEST--
+http_date() with timestamp
+--SKIPIF--
+<?php 
+include 'skip.inc';
+?>
+--FILE--
+<?php
+echo http_date(1), "\n";
+echo http_date(1234567890), "\n";
+?>
+--EXPECTF--
+Content-type: text/html
+X-Powered-By: PHP/%s
+
+Thu, 01 Jan 1970 00:00:01 GMT
+Fri, 13 Feb 2009 23:31:30 GMT