Updated for new ISP test DB

This commit is contained in:
Gregory Oschwald 2014-06-18 10:29:54 -07:00
parent cdf75ec505
commit 84299eba92
2 changed files with 7 additions and 6 deletions

@ -1 +1 @@
Subproject commit f86528a05b883955a1c696ffe3bfeaa1224703d0
Subproject commit f53865477d361101969853f8d418458fd58cdc74

View File

@ -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();