Add test for city call

This commit is contained in:
Gregory Oschwald 2013-05-20 13:47:17 -07:00
parent b383cf82b3
commit 5eda52e1db

View File

@ -156,6 +156,14 @@ class ClientTest extends \PHPUnit_Framework_TestCase
);
}
public function testCity()
{
$city = $this->client($this->getResponse('1.2.3.4'))
->city('1.2.3.4');
$this->assertInstanceOf('GeoIP2\Model\City', $city);
}
public function testMe()
{
$client = $this->client($this->getResponse('me'));