Updated for new test path
This commit is contained in:
parent
a6c1f9378e
commit
3ba84992c8
|
@ -8,7 +8,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
public function testDefaultLanguage()
|
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');
|
$city = $reader->city('81.2.69.160');
|
||||||
$this->assertEquals('London', $city->city->name);
|
$this->assertEquals('London', $city->city->name);
|
||||||
$reader->close();
|
$reader->close();
|
||||||
|
@ -17,7 +17,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
|
||||||
public function testLanguageList()
|
public function testLanguageList()
|
||||||
{
|
{
|
||||||
$reader = new Reader(
|
$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')
|
array('xx', 'ru', 'pt-BR', 'es', 'en')
|
||||||
);
|
);
|
||||||
$omni = $reader->omni('81.2.69.160');
|
$omni = $reader->omni('81.2.69.160');
|
||||||
|
@ -27,7 +27,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
public function testHasIpAddress()
|
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');
|
$cio = $reader->cityIspOrg('81.2.69.160');
|
||||||
$this->assertEquals('81.2.69.160', $cio->traits->ipAddress);
|
$this->assertEquals('81.2.69.160', $cio->traits->ipAddress);
|
||||||
$reader->close();
|
$reader->close();
|
||||||
|
@ -39,7 +39,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
|
||||||
*/
|
*/
|
||||||
public function testUnknownAddress()
|
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->city('10.10.10.10');
|
||||||
$reader->close();
|
$reader->close();
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
|
||||||
*/
|
*/
|
||||||
public function testInvalidAddress()
|
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->city('invalid');
|
||||||
$reader->close();
|
$reader->close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user