Updated for new ISP test DB
This commit is contained in:
parent
cdf75ec505
commit
84299eba92
|
@ -1 +1 @@
|
||||||
Subproject commit f86528a05b883955a1c696ffe3bfeaa1224703d0
|
Subproject commit f53865477d361101969853f8d418458fd58cdc74
|
|
@ -95,17 +95,18 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
public function testIsp()
|
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);
|
$record = $reader->isp($ipAddress);
|
||||||
$this->assertEquals(6730, $record->autonomousSystemNumber);
|
$this->assertEquals(1221, $record->autonomousSystemNumber);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'Sunrise Communications AG',
|
'Telstra Pty Ltd',
|
||||||
$record->autonomousSystemOrganization
|
$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);
|
$this->assertEquals($ipAddress, $record->ipAddress);
|
||||||
$reader->close();
|
$reader->close();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user