xref: /PHP-8.1/ext/date/tests/gmmktime_basic.phpt (revision b5c7a83d)
1--TEST--
2Test gmmktime() function : basic functionality
3--FILE--
4<?php
5echo "*** Testing gmmktime() : basic functionality ***\n";
6
7// Initialise all required variables
8$hour = 8;
9$min = 8;
10$sec = 8;
11$mon = 8;
12$day = 8;
13$year = 2008;
14
15// Calling gmmktime() with all possible arguments
16var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
17
18?>
19--EXPECT--
20*** Testing gmmktime() : basic functionality ***
21int(1218182888)
22