diff options
author | Marek Laane <bald@smail.ee> | 2014-10-12 10:54:11 +0300 |
---|---|---|
committer | Marek Laane <bald@smail.ee> | 2014-10-12 10:54:11 +0300 |
commit | a0b2d09125d7911656fe4cb286f20643c4432281 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /lib/t/01_mga_geoip.t | |
parent | e32d8242187534c387106ff344201c42ff6afb44 (diff) | |
download | www-a0b2d09125d7911656fe4cb286f20643c4432281.tar www-a0b2d09125d7911656fe4cb286f20643c4432281.tar.gz www-a0b2d09125d7911656fe4cb286f20643c4432281.tar.bz2 www-a0b2d09125d7911656fe4cb286f20643c4432281.tar.xz www-a0b2d09125d7911656fe4cb286f20643c4432281.zip |
Updated Estonian translation
Diffstat (limited to 'lib/t/01_mga_geoip.t')
-rw-r--r-- | lib/t/01_mga_geoip.t | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/t/01_mga_geoip.t b/lib/t/01_mga_geoip.t deleted file mode 100644 index aa3daa674..000000000 --- a/lib/t/01_mga_geoip.t +++ /dev/null @@ -1,29 +0,0 @@ -<?php - -require_once realpath(__DIR__ . '/../testmore.php'); -require_once realpath(__DIR__ . '/../mga_geoip.php'); - -plan('no_plan'); - -diag('Testing mga_geoip_* functions against defined IP/locations.'); - -$ips = array( - '46.33.75.17' - => array('DE', 'EU'), - - '2a01:e35:8a03:9990:223:dfff:fe7e:e7f0' - => array('FR', 'EU'), - - '2a00:1450:8006::93' - => array('IE', 'EU'), - - '173.194.67.99' - => array('US', 'NA') -); - -foreach ($ips as $ip => $cc) { - - $country = MGA_Geoip::mga_geoip_country_by_ip($ip, false); - is($country, $cc[0], 'country match for ' . $ip); - is(MGA_Geoip::mga_geoip_continent_by_country($country), $cc[1], 'continent match for ' . $ip); -} |