Skip to content

Commit

Permalink
Fixed Test Case for testGetBatchDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
noamanahmed committed Sep 11, 2023
1 parent 8176cf9 commit e13b581
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions tests/IPinfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,20 @@ public function testGetBatchDetails()
$this->assertArrayHasKey('9.9.9.9', $res);
$this->assertArrayHasKey('10.10.10.10', $res);

-
-
-
-

$this->assertEquals($res['8.8.8.8/hostname'], 'dns.google');
$this->assertEquals($res['4.4.4.4'], [
'ip' => "4.4.4.4",
'city' => "Paris",
'region' => "Île-de-France",
'country' => "FR",
'loc' => "48.8534,2.3488",
'postal' => "75000",
'timezone' => "Europe/Paris",
'city' => 'Broomfield',
'region' => 'Colorado',
'country' => 'US',
'loc' => '39.8854,-105.1139',
'postal' => '80021',
'timezone' => 'America/Denver',
'asn' => [
'asn' => "AS3356",
'name' => "Level 3 Parent, LLC",
Expand Down Expand Up @@ -230,13 +235,13 @@ public function testGetBatchDetails()
],
'domains' => [
'ip' => "4.4.4.4",
'total' => 123,
'total' => 119,
'domains' => [
'ncrsaas.com',
'clickconsult.com',
'pvorobiev.com',
'itmanagementgroup.de',
'ngma.top'
'datacenterteam.de',
'lavu-pos.com',
'prodygy.biz',
'giacomoni.ca',
]
],
'org' => 'AS3356 Level 3 Parent, LLC',
Expand Down

0 comments on commit e13b581

Please sign in to comment.