Remove deprecated web service methods

This commit is contained in:
Gregory Oschwald
2014-09-12 07:03:53 -07:00
committed by Dave Rolsky
parent 36624ae87a
commit 42efc47796
4 changed files with 19 additions and 86 deletions
+9 -12
View File
@@ -201,19 +201,16 @@ class ClientTest extends \PHPUnit_Framework_TestCase
public function testInsights()
{
$methods = array('omni', 'insights');
foreach ($methods as $method) {
$record = $this->client($this->getResponse('1.2.3.4'))
->$method('1.2.3.4');
$record = $this->client($this->getResponse('1.2.3.4'))
->insights('1.2.3.4');
$this->assertInstanceOf('GeoIp2\Model\Insights', $record);
$this->assertInstanceOf('GeoIp2\Model\Insights', $record);
$this->assertEquals(
42,
$record->continent->geonameId,
'continent geoname_id is 42'
);
}
$this->assertEquals(
42,
$record->continent->geonameId,
'continent geoname_id is 42'
);
}
public function testCity()
@@ -230,7 +227,7 @@ class ClientTest extends \PHPUnit_Framework_TestCase
$this->assertInstanceOf(
'GeoIp2\Model\City',
$client->cityIspOrg('me'),
$client->city('me'),
'can set ip parameter to me'
);
}