- we're not using new ext/date but php_gmtime_r()
[m6w6/ext-http] / tests / date_002.phpt
index 3bcafac076c51e937eb084467918d8aed97851ea..bf89a5116abc90638c49727b8e1022937fdf1f6e 100644 (file)
@@ -1,21 +1,20 @@
 --TEST--
 http_date() without timestamp
 --SKIPIF--
-<?php 
+<?php
 include 'skip.inc';
 ?>
 --FILE--
 <?php
-$d1 = http_date();
-$d2 = http_date();
-var_dump($d1 === $d2);
-echo strtotime($d1), "\n$d1\n$d2\n";
+echo "-TEST\n";
+$d = http_date();
+$t = strtotime($d);
+var_dump($t > 1);
+echo "$t\n$d\nDone\n";
 ?>
 --EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%sTEST
 bool(true)
 %d
 %s, %d %s %d %d:%d:%d GMT
-%s, %d %s %d %d:%d:%d GMT
+Done