projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- add response tests
[m6w6/ext-http]
/
tests
/
date_002.phpt
diff --git
a/tests/date_002.phpt
b/tests/date_002.phpt
index 3bcafac076c51e937eb084467918d8aed97851ea..9fdb15e84db963cbe91d38298a5a0e53cc5797cb 100644
(file)
--- a/
tests/date_002.phpt
+++ b/
tests/date_002.phpt
@@
-6,16
+6,14
@@
include 'skip.inc';
?>
--FILE--
<?php
?>
--FILE--
<?php
-$d1 = http_date();
-$d2 = http_date();
+$t = time();
+$d1 = http_date($t);
+$d2 = http_date($t);
var_dump($d1 === $d2);
echo strtotime($d1), "\n$d1\n$d2\n";
?>
--EXPECTF--
var_dump($d1 === $d2);
echo strtotime($d1), "\n$d1\n$d2\n";
?>
--EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
-bool(true)
+%sbool(true)
%d
%s, %d %s %d %d:%d:%d GMT
%s, %d %s %d %d:%d:%d GMT
%d
%s, %d %s %d %d:%d:%d GMT
%s, %d %s %d %d:%d:%d GMT