make test runner work in open source repo
[hiphop-php.git] / hphp / test / zend / bad / ext-date / timezone_name_from_abbr_error.php
blob2f22f7609b4a32f7d582a8313c985e35cd765e6b
1 <?php
2 /* Prototype : string timezone_name_from_abbr ( string $abbr [, int $gmtOffset= -1 [, int $isdst= -1 ]] )
3 * Description: Returns the timezone name from abbrevation
4 * Source code: ext/date/php_date.c
5 * Alias to functions:
6 */
8 error_reporting(E_ALL | E_STRICT);
10 //Set the default time zone
11 date_default_timezone_set("Europe/London");
13 echo "*** Testing timezone_name_from_abbr() : error conditions ***\n";
15 echo "\n-- Testing timezone_name_from_abbr() function with Zero arguments --\n";
16 var_dump( timezone_name_from_abbr() );
18 echo "\n-- Testing timezone_name_from_abbr() function with more than expected no. of arguments --\n";
19 $abbr = 10;
20 $gmtOffset = 30;
21 $isdst = 45;
22 $extra_arg = 10;
23 var_dump( timezone_name_from_abbr($abbr, $gmtOffset, $isdst, $extra_arg) );
26 ===DONE===