I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git] / hphp / test / zend / bad / ext-date / date_sunrise_error.php
blob1d65ff59b3485f2f631c3ccba06e35682e8b658c
1 <?php
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
5 */
7 echo "*** Testing date_sunrise() : error conditions ***\n";
9 //Initialise the variables
10 $time = time();
11 $latitude = 38.4;
12 $longitude = -9;
13 $zenith = 90;
14 $gmt_offset = 1;
15 $extra_arg = 10;
17 // Zero arguments
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) );
25 ===DONE===