From 5eda52e1dbfc6dd4107a16b70fe2457f74c0d547 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Mon, 20 May 2013 13:47:17 -0700 Subject: [PATCH] Add test for city call --- tests/GeoIP2/Test/WebService/ClientTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/GeoIP2/Test/WebService/ClientTest.php b/tests/GeoIP2/Test/WebService/ClientTest.php index 2957bcf..bcea848 100644 --- a/tests/GeoIP2/Test/WebService/ClientTest.php +++ b/tests/GeoIP2/Test/WebService/ClientTest.php @@ -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'));