Added a very basic omni test as we didn't cover it previously
This commit is contained in:
parent
57f6af0bfd
commit
aeba497703
|
@ -141,6 +141,21 @@ class ClientTest extends \PHPUnit_Framework_TestCase
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
public function testOmni()
|
||||
{
|
||||
$omni = $this->client($this->getResponse('1.2.3.10'))
|
||||
->omni('1.2.3.10');
|
||||
|
||||
$this->assertInstanceOf('GeoIP2\Model\Omni', $omni);
|
||||
|
||||
$this->assertEquals(
|
||||
42,
|
||||
$omni->continent->geonameId,
|
||||
'continent geoname_id is 42'
|
||||
);
|
||||
}
|
||||
|
||||
public function testMe()
|
||||
{
|
||||
$client = $this->client($this->getResponse('me'));
|
||||
|
|
Loading…
Reference in New Issue
Block a user