summaryrefslogtreecommitdiffstats
path: root/geoip-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'geoip-tests.patch')
-rw-r--r--geoip-tests.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/geoip-tests.patch b/geoip-tests.patch
new file mode 100644
index 0000000..335568b
--- /dev/null
+++ b/geoip-tests.patch
@@ -0,0 +1,25 @@
+Index: tests/014.phpt
+===================================================================
+--- tests/014.phpt (revision 311865)
++++ tests/014.phpt (working copy)
+@@ -7,17 +7,15 @@
+ --FILE--
+ <?php
+
+-var_dump(geoip_time_zone_by_country_and_region('CA',''));
+-var_dump(geoip_time_zone_by_country_and_region('CA',NULL));
+-var_dump(geoip_time_zone_by_country_and_region('CA'));
++var_dump(geoip_time_zone_by_country_and_region('CA','AB'));
++var_dump(geoip_time_zone_by_country_and_region('CM',NULL));
+ var_dump(geoip_time_zone_by_country_and_region(NULL,''));
+ var_dump(geoip_time_zone_by_country_and_region(NULL,NULL));
+
+ ?>
+ --EXPECTF--
+ string(%d) "America/%s"
+-string(%d) "America/%s"
+-string(%d) "America/%s"
++string(%d) "Africa/Lagos"
+
+ Warning: geoip_time_zone_by_country_and_region(): You need to specify at least the country code. in %s on line %d
+ bool(false)