Skip to content

Commit 8e7adcd

Browse files
committed
Update test databases
1 parent 6c2d4fb commit 8e7adcd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

maxmind-db

Submodule maxmind-db updated 46 files

tests/GeoIp2/Test/Database/ReaderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ public function testHasIpAddressAndNetwork(string $type, string $method): void
6262
public function testIsInEuropeanUnion(string $type, string $method): void
6363
{
6464
$reader = new Reader("maxmind-db/test-data/GeoIP2-$type-Test.mmdb");
65-
$record = $reader->{$method}('81.2.69.160');
65+
$record = $reader->{$method}('2a02:cfc0::');
6666
$this->assertTrue(
6767
$record->country->isInEuropeanUnion,
6868
'country is_in_european_union is true'
6969
);
70-
$this->assertFalse(
70+
$this->assertTrue(
7171
$record->registeredCountry->isInEuropeanUnion,
72-
'registered_country is_in_european_union is false'
72+
'registered_country is_in_european_union is true'
7373
);
7474
$reader->close();
7575
}

0 commit comments

Comments
 (0)