Added a very basic omni test as we didn't cover it previously

This commit is contained in:
Gregory Oschwald 2013-05-20 13:15:25 -07:00
parent 57f6af0bfd
commit aeba497703

View File

@ -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() public function testMe()
{ {
$client = $this->client($this->getResponse('me')); $client = $this->client($this->getResponse('me'));