diff --git a/maxmind-db b/maxmind-db index f86528a..f538654 160000 --- a/maxmind-db +++ b/maxmind-db @@ -1 +1 @@ -Subproject commit f86528a05b883955a1c696ffe3bfeaa1224703d0 +Subproject commit f53865477d361101969853f8d418458fd58cdc74 diff --git a/tests/GeoIp2/Test/Database/ReaderTest.php b/tests/GeoIp2/Test/Database/ReaderTest.php index 6940e8c..476abb3 100644 --- a/tests/GeoIp2/Test/Database/ReaderTest.php +++ b/tests/GeoIp2/Test/Database/ReaderTest.php @@ -95,17 +95,18 @@ class ReaderTest extends \PHPUnit_Framework_TestCase public function testIsp() { - $reader = new Reader('maxmind-db/test-data/GeoIP2-ISP-Org-Test.mmdb'); + $reader = new Reader('maxmind-db/test-data/GeoIP2-ISP-Test.mmdb'); - $ipAddress = '2001:1700::'; + $ipAddress = '1.128.0.0'; $record = $reader->isp($ipAddress); - $this->assertEquals(6730, $record->autonomousSystemNumber); + $this->assertEquals(1221, $record->autonomousSystemNumber); $this->assertEquals( - 'Sunrise Communications AG', + 'Telstra Pty Ltd', $record->autonomousSystemOrganization ); - // XXX - Add org/isp when available + $this->assertEquals('Telstra Internet', $record->isp); + $this->assertEquals('Telstra Internet', $record->organization); $this->assertEquals($ipAddress, $record->ipAddress); $reader->close();