Skip to content

Commit 6176575

Browse files
committed
Test metadata pointers
1 parent 4bb248f commit 6176575

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
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(

0 commit comments

Comments
 (0)