Skip to content

Commit 3707399

Browse files
committed
Merge remote-tracking branch 'upstream/master' into symfony/cache-7.x
2 parents 1d5f99f + 5ee7a51 commit 3707399

3 files changed

Lines changed: 7 additions & 54 deletions

File tree

.github/workflows/phpunit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
run: /usr/local/bin/phpunit --coverage-html=coverage
5151

5252
- name: Archive code coverage results
53-
uses: actions/upload-artifact@v3
53+
uses: actions/upload-artifact@v4
5454
with:
55-
name: code-coverage-report
55+
name: code-coverage-report-${{ matrix.php-versions }}-${{ matrix.phpunit-versions }}-${{ matrix.operating-system }}
5656
path: coverage/
5757
retention-days: 90

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ You'll need an IPinfo API access token, which you can get by signing up for a fr
1414

1515
The free plan is limited to 50,000 requests per month, and doesn't include some of the data fields such as IP type and company data. To enable all the data fields and additional request volumes see [https://ipinfo.io/pricing](https://ipinfo.io/pricing?ref=lib-PHP).
1616

17+
⚠️ Note: This library does not currently support our newest free API https://ipinfo.io/lite. If you’d like to use IPinfo Lite, you can call the [endpoint directly](https://ipinfo.io/developers/lite-api) using your preferred HTTP client. Developers are also welcome to contribute support for Lite by submitting a pull request.
18+
1719
#### Installation
1820

1921
The package works with PHP 8 and is available using [Composer](https://getcomposer.org).

tests/IPinfoTest.php

Lines changed: 3 additions & 52 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
$this->assertEquals($res->asn['asn'], 'AS15169');
@@ -191,55 +191,6 @@ public function testGetBatchDetails()
191191
$this->assertArrayHasKey('9.9.9.9', $res);
192192
$this->assertArrayHasKey('10.10.10.10', $res);
193193
$this->assertEquals($res['8.8.8.8/hostname'], 'dns.google');
194-
$this->assertEquals($res['4.4.4.4'], [
195-
'ip' => "4.4.4.4",
196-
'city' => 'Broomfield',
197-
'region' => 'Colorado',
198-
'country' => 'US',
199-
'loc' => '39.8854,-105.1139',
200-
'postal' => '80021',
201-
'timezone' => 'America/Denver',
202-
'asn' => [
203-
'asn' => "AS3356",
204-
'name' => "Level 3 Parent, LLC",
205-
'domain' => "lumen.com",
206-
'route' => "4.0.0.0/9",
207-
'type' => "isp"
208-
],
209-
'company' => [
210-
'name' => "Level 3 Communications, Inc.",
211-
'domain' => "lumen.com",
212-
'type' => "isp"
213-
],
214-
'privacy' => [
215-
'vpn' => false,
216-
'proxy' => false,
217-
'tor' => false,
218-
'relay' => false,
219-
'hosting' => false,
220-
'service' => ""
221-
],
222-
'abuse' => [
223-
'address' => "US, LA, Monroe, 100 CenturyLink Drive, 71203",
224-
'country' => "US",
225-
'email' => "abuse@level3.com",
226-
'name' => "L3 Abuse Contact",
227-
'network' => "4.4.0.0/16",
228-
'phone' => "+1-877-453-8353"
229-
],
230-
'domains' => [
231-
'ip' => "4.4.4.4",
232-
'total' => 120,
233-
'domains' => [
234-
'ncrsaas.com',
235-
'ampuroci.com',
236-
'bachkhoasupply.com',
237-
'dc-scape.com',
238-
'bfgroup.kz',
239-
]
240-
],
241-
'org' => 'AS3356 Level 3 Parent, LLC',
242-
]);
243194

244195
$this->assertEquals($res['AS123'], [
245196
'asn' => "AS123",

0 commit comments

Comments
 (0)