1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Files
archived-php-src/ext/date/tests/idate_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

23 lines
538 B
PHP

--TEST--
Test idate() function : basic functionality
--FILE--
<?php
/* Prototype : int idate(string format [, int timestamp])
* Description: Format a local time/date as integer
* Source code: ext/date/php_date.c
* Alias to functions:
*/
echo "*** Testing idate() : basic functionality ***\n";
// Initialise all required variables
$format = 'Y';
// Calling idate() with mandatory arguments
date_default_timezone_set("Asia/Calcutta");
var_dump( idate($format) );
?>
--EXPECTF--
*** Testing idate() : basic functionality ***
int(%d)