Add test for city call
This commit is contained in:
parent
b383cf82b3
commit
5eda52e1db
|
@ -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()
|
public function testMe()
|
||||||
{
|
{
|
||||||
$client = $this->client($this->getResponse('me'));
|
$client = $this->client($this->getResponse('me'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user