summaryrefslogtreecommitdiff
path: root/ext/date/tests/timezone_name_from_abbr_basic1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests/timezone_name_from_abbr_basic1.phpt')
-rw-r--r--ext/date/tests/timezone_name_from_abbr_basic1.phpt10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/date/tests/timezone_name_from_abbr_basic1.phpt b/ext/date/tests/timezone_name_from_abbr_basic1.phpt
index 1a7ea5e4cf..f7745cb73f 100644
--- a/ext/date/tests/timezone_name_from_abbr_basic1.phpt
+++ b/ext/date/tests/timezone_name_from_abbr_basic1.phpt
@@ -5,7 +5,7 @@ Test timezone_name_from_abbr() function : basic functionality
/* Prototype : string timezone_name_from_abbr ( string $abbr [, int $gmtOffset= -1 [, int $isdst= -1 ]] )
* Description: Returns the timezone name from abbrevation
* Source code: ext/date/php_date.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing timezone_name_from_abbr() : basic functionality ***\n";
@@ -13,7 +13,7 @@ echo "*** Testing timezone_name_from_abbr() : basic functionality ***\n";
//Set the default time zone
date_default_timezone_set("Europe/London");
-echo "-- Tests with special cases first - no lookup needed --\n";
+echo "-- Tests with special cases first - no lookup needed --\n";
var_dump( timezone_name_from_abbr("GMT") );
var_dump( timezone_name_from_abbr("UTC") );
@@ -21,17 +21,17 @@ echo "-- Lookup with just name --\n";
var_dump( timezone_name_from_abbr("CET") );
var_dump( timezone_name_from_abbr("EDT") );
-echo "-- Lookup with name and offset--\n";
+echo "-- Lookup with name and offset--\n";
var_dump( timezone_name_from_abbr("ADT", -10800) );
var_dump( timezone_name_from_abbr("ADT", 14400) );
-echo "-- Tests without valid name - uses gmtOffset and isdst to find match --\n";
+echo "-- Tests without valid name - uses gmtOffset and isdst to find match --\n";
var_dump( timezone_name_from_abbr("", 3600, 1) );
var_dump( timezone_name_from_abbr("FOO", -7200, 1) );
var_dump( timezone_name_from_abbr("", -14400, 1) );
var_dump( timezone_name_from_abbr("", -14400, 0) );
-echo "-- Tests with invalid offsets --\n";
+echo "-- Tests with invalid offsets --\n";
var_dump( timezone_name_from_abbr("", 5400) ); // offset = 1.5 hrs
var_dump( timezone_name_from_abbr("", 62400) ); // offset = 24 hrs
?>