1--TEST--
2Test gmstrftime() function : basic functionality
3--FILE--
4<?php
5echo "*** Testing gmstrftime() : basic functionality ***\n";
6
7// Initialise all required variables
8$format = '%b %d %Y %H:%M:%S';
9$timestamp = gmmktime(8, 8, 8, 8, 8, 2008);
10
11// Calling gmstrftime() with all possible arguments
12var_dump( gmstrftime($format, $timestamp) );
13
14// Calling gmstrftime() with mandatory arguments
15var_dump( gmstrftime($format) );
16
17?>
18--EXPECTF--
19*** Testing gmstrftime() : basic functionality ***
20string(20) "Aug 08 2008 08:08:08"
21string(%d) "%s %d %d %d:%d:%d"
22