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 test file to package.xml
[m6w6/ext-http]
/
tests
/
date_002.phpt
diff --git
a/tests/date_002.phpt
b/tests/date_002.phpt
index 3bcafac076c51e937eb084467918d8aed97851ea..aeb120555c9e3c03af9fa7df703c7b401d560ffc 100644
(file)
--- a/
tests/date_002.phpt
+++ b/
tests/date_002.phpt
@@
-1,21
+1,21
@@
--TEST--
http_date() without timestamp
--SKIPIF--
--TEST--
http_date() without timestamp
--SKIPIF--
-<?php
+<?php
include 'skip.inc';
?>
--FILE--
<?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";
+ini_set('date.timezone', 'GMT');
+$d = http_date();
+$t = strtotime($d);
+var_dump($t > 1);
+echo "$t\n$d\nDone\n";
?>
--EXPECTF--
?>
--EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%aTEST
bool(true)
%d
bool(true)
%d
-%
s, %d %s
%d %d:%d:%d GMT
-%s, %d %s %d %d:%d:%d GMT
+%
a, %d %a
%d %d:%d:%d GMT
+Done