1--TEST--
2Test basic date_sun_info()
3--FILE--
4<?php
5date_default_timezone_set('Europe/Oslo');
6$sun_info = date_sun_info(strtotime("2007-04-13 08:31:15 UTC"), 59.21, 9.61);
7foreach ($sun_info as $key => $elem )
8{
9    echo date( 'Y-m-d H:i:s T', $elem ),  " ", $key, "\n";
10}
11echo "Done\n";
12?>
13--EXPECT--
142007-04-13 06:11:26 CEST sunrise
152007-04-13 20:32:56 CEST sunset
162007-04-13 13:22:11 CEST transit
172007-04-13 05:29:22 CEST civil_twilight_begin
182007-04-13 21:15:00 CEST civil_twilight_end
192007-04-13 04:31:43 CEST nautical_twilight_begin
202007-04-13 22:12:39 CEST nautical_twilight_end
212007-04-13 03:17:01 CEST astronomical_twilight_begin
222007-04-13 23:27:21 CEST astronomical_twilight_end
23Done
24