Skip to content

Commit 4f2cc41

Browse files
committed
Update tests
1 parent 636e052 commit 4f2cc41

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/IPinfoTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ public function testLookup()
9898
$this->assertEquals($res->country_currency['symbol'], '$');
9999
$this->assertEquals($res->continent['code'], 'NA');
100100
$this->assertEquals($res->continent['name'], 'North America');
101-
$this->assertEquals($res->loc, '37.4056,-122.0775');
102-
$this->assertEquals($res->latitude, '37.4056');
103-
$this->assertEquals($res->longitude, '-122.0775');
101+
$this->assertEquals($res->loc, '38.0088,-122.1175');
102+
$this->assertEquals($res->latitude, '38.0088');
103+
$this->assertEquals($res->longitude, '-122.1175');
104104
$this->assertEquals($res->postal, '94043');
105105
$this->assertEquals($res->timezone, 'America/Los_Angeles');
106106
if ($res->asn !== null) {
@@ -205,12 +205,12 @@ public function testGetBatchDetails()
205205
$this->assertEquals($res['8.8.8.8/hostname'], 'dns.google');
206206
$ipV4 = $res['4.4.4.4'];
207207
$this->assertEquals($ipV4['ip'], '4.4.4.4');
208-
$this->assertEquals($ipV4['city'], 'Dhaka');
209-
$this->assertEquals($ipV4['region'], 'Dhaka Division');
210-
$this->assertEquals($ipV4['country'], 'BD');
211-
$this->assertEquals($ipV4['loc'], '23.7104,90.4074');
212-
$this->assertEquals($ipV4['postal'], '1000');
213-
$this->assertEquals($ipV4['timezone'], 'Asia/Dhaka');
208+
$this->assertEquals($ipV4['city'], 'Paris');
209+
$this->assertEquals($ipV4['region'], 'Île-de-France');
210+
$this->assertEquals($ipV4['country'], 'FR');
211+
$this->assertEquals($ipV4['loc'], '48.8534,2.3488');
212+
$this->assertEquals($ipV4['postal'], '75000');
213+
$this->assertEquals($ipV4['timezone'], 'Europe/Paris');
214214
$this->assertEquals($ipV4['org'], 'AS3356 Level 3 Parent, LLC');
215215
}
216216
}

0 commit comments

Comments
 (0)