1--TEST--
2Test gmmktime() function : usage variation - Checking with few optional arguments.
3--FILE--
4<?php
5echo "*** Testing gmmktime() : usage variation ***\n";
6
7// Initialise all required variables
8$hour = 8;
9$min = 8;
10$sec = 8;
11$mon = 8;
12$day = 8;
13
14echo "\n-- Testing gmmktime() function with one optional argument --\n";
15var_dump( gmmktime($hour) );
16
17echo "\n-- Testing gmmktime() function with two optional argument --\n";
18var_dump( gmmktime($hour, $min) );
19
20echo "\n-- Testing gmmktime() function with three optional argument --\n";
21var_dump( gmmktime($hour, $min, $sec) );
22
23echo "\n-- Testing gmmktime() function with four optional argument --\n";
24var_dump( gmmktime($hour, $min, $sec, $mon) );
25
26echo "\n-- Testing gmmktime() function with five optional argument --\n";
27var_dump( gmmktime($hour, $min, $sec, $mon, $day) );
28
29?>
30--EXPECTF--
31*** Testing gmmktime() : usage variation ***
32
33-- Testing gmmktime() function with one optional argument --
34int(%d)
35
36-- Testing gmmktime() function with two optional argument --
37int(%d)
38
39-- Testing gmmktime() function with three optional argument --
40int(%d)
41
42-- Testing gmmktime() function with four optional argument --
43int(%d)
44
45-- Testing gmmktime() function with five optional argument --
46int(%d)
47