1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 21:41:22 +02:00
Files
archived-php-src/ext/date/tests/date_sun_info_001.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

32 lines
621 B
PHP

--TEST--
Test basic date_sun_info()
--FILE--
<?php
date_default_timezone_set('UTC');
$sun_info = date_sun_info(strtotime("2006-12-12"), 31.7667, 35.2333);
var_dump($sun_info);
echo "Done\n";
?>
--EXPECT--
array(9) {
["sunrise"]=>
int(1165897761)
["sunset"]=>
int(1165934160)
["transit"]=>
int(1165915961)
["civil_twilight_begin"]=>
int(1165896156)
["civil_twilight_end"]=>
int(1165935765)
["nautical_twilight_begin"]=>
int(1165894334)
["nautical_twilight_end"]=>
int(1165937588)
["astronomical_twilight_begin"]=>
int(1165892551)
["astronomical_twilight_end"]=>
int(1165939371)
}
Done