- fix previous commit and adjust tests
[m6w6/ext-http] / tests / date_002.phpt
1 --TEST--
2 http_date() without timestamp
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 ?>
7 --FILE--
8 <?php
9 echo "-TEST\n";
10 ini_set('date.timezone', 'GMT');
11 $d = http_date();
12 $t = strtotime($d);
13 var_dump($t > 1);
14 echo "$t\n$d\nDone\n";
15 ?>
16 --EXPECTF--
17 %sTEST
18 bool(true)
19 %d
20 %s, %d %s %d %d:%d:%d GMT
21 Done