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--EXPECTF--
142007-04-13 06:12:19 CEST sunrise
152007-04-13 20:31:50 CEST sunset
162007-04-13 13:22:05 CEST transit
172007-04-13 05:28:03 CEST civil_twilight_begin
182007-04-13 21:16:06 CEST civil_twilight_end
192007-04-13 04:30:08 CEST nautical_twilight_begin
202007-04-13 22:14:01 CEST nautical_twilight_end
212007-04-13 03:14:36 CEST astronomical_twilight_begin
222007-04-13 23:29:33 CEST astronomical_twilight_end
23Done
24