summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug74080.phpt
blob: a86c78144e66ee1c34ed786f2101137863b646cb (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Bug #74080 Provide an RFC7231 date time format
--FILE--
<?php

$date = mktime(17, 52, 13, 4, 30, 2016);
var_dump(date(\DateTime::RFC7231, $date));

?>
--EXPECT--
string(29) "Sat, 30 Apr 2016 17:52:13 GMT"