1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 18:13:00 +02:00
Files
archived-php-src/ext/date/tests/gmmktime_basic.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

28 lines
641 B
PHP

--TEST--
Test gmmktime() function : basic functionality
--FILE--
<?php
/* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]])
* Description: Get UNIX timestamp for a GMT date
* Source code: ext/date/php_date.c
* Alias to functions:
*/
echo "*** Testing gmmktime() : basic functionality ***\n";
// Initialise all required variables
$hour = 8;
$min = 8;
$sec = 8;
$mon = 8;
$day = 8;
$year = 2008;
// Calling gmmktime() with all possible arguments
var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
?>
--EXPECTF--
*** Testing gmmktime() : basic functionality ***
int(1218182888)