gmmktime_basic.phpt 424 B

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