2 /* Prototype : mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])
3 * Description: Returns time of sunrise for a given day and location
4 * Source code: ext/date/php_date.c
7 echo "*** Testing date_sunrise() : error conditions ***\n";
9 //Initialise the variables
18 echo "\n-- Testing date_sunrise() function with Zero arguments --\n";
19 var_dump( date_sunrise() );
21 //Test date_sunrise with one more than the expected number of arguments
22 echo "\n-- Testing date_sunrise() function with more than expected no. of arguments --\n";
23 var_dump( date_sunrise($time, SUNFUNCS_RET_STRING
, $latitude, $longitude, $zenith, $gmt_offset, $extra_arg) );