From 3ba84992c897fdaef800b23c7b08af3a11147c69 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Mon, 15 Jul 2013 16:10:05 -0700 Subject: [PATCH] Updated for new test path --- tests/GeoIp2/Test/Database/ReaderTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/GeoIp2/Test/Database/ReaderTest.php b/tests/GeoIp2/Test/Database/ReaderTest.php index 81b6508..2d6afee 100644 --- a/tests/GeoIp2/Test/Database/ReaderTest.php +++ b/tests/GeoIp2/Test/Database/ReaderTest.php @@ -8,7 +8,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase { public function testDefaultLanguage() { - $reader = new Reader('maxmind-db/test-data/GeoIP2-City.mmdb'); + $reader = new Reader('maxmind-db/test-data/GeoIP2-City-Test.mmdb'); $city = $reader->city('81.2.69.160'); $this->assertEquals('London', $city->city->name); $reader->close(); @@ -17,7 +17,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase public function testLanguageList() { $reader = new Reader( - 'maxmind-db/test-data/GeoIP2-City.mmdb', + 'maxmind-db/test-data/GeoIP2-City-Test.mmdb', array('xx', 'ru', 'pt-BR', 'es', 'en') ); $omni = $reader->omni('81.2.69.160'); @@ -27,7 +27,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase public function testHasIpAddress() { - $reader = new Reader('maxmind-db/test-data/GeoIP2-City.mmdb'); + $reader = new Reader('maxmind-db/test-data/GeoIP2-City-Test.mmdb'); $cio = $reader->cityIspOrg('81.2.69.160'); $this->assertEquals('81.2.69.160', $cio->traits->ipAddress); $reader->close(); @@ -39,7 +39,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase */ public function testUnknownAddress() { - $reader = new Reader('maxmind-db/test-data/GeoIP2-City.mmdb'); + $reader = new Reader('maxmind-db/test-data/GeoIP2-City-Test.mmdb'); $reader->city('10.10.10.10'); $reader->close(); } @@ -50,7 +50,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase */ public function testInvalidAddress() { - $reader = new Reader('maxmind-db/test-data/GeoIP2-City.mmdb'); + $reader = new Reader('maxmind-db/test-data/GeoIP2-City-Test.mmdb'); $reader->city('invalid'); $reader->close(); }