Skip to content

Commit a301c04

Browse files
authored
Merge pull request #129 from maxmind/greg/metadata-pointer-test
Test pointers in metadata
2 parents 71b19c5 + 6176575 commit a301c04

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tests/MaxMind/Db/Test/ReaderTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ public function testMax(): void
131131
$this->assertSame('340282366920938463463374607431768211455', $uint128);
132132
}
133133

134+
public function testMetadataPointers(): void
135+
{
136+
$reader = new Reader(
137+
'tests/data/test-data/MaxMind-DB-test-metadata-pointers.mmdb'
138+
);
139+
$this->assertSame('Lots of pointers in metadata', $reader->metadata()->databaseType);
140+
}
141+
134142
public function testNoIpV4SearchTree(): void
135143
{
136144
$reader = new Reader(

tests/data

Submodule data updated 49 files

0 commit comments

Comments
 (0)