You are here

public function ReaderTest::testV6AddressV4Database in Smart IP 7.2

Same name and namespace in other branches
  1. 6.2 includes/vendor/maxmind-db/reader/tests/MaxMind/Db/Test/ReaderTest.php \MaxMind\Db\Test\Reader\ReaderTest::testV6AddressV4Database()

@expectedException InvalidArgumentException @expectedExceptionMessage Error looking up 2001::. You attempted to look up an IPv6 address in an IPv4-only database

File

includes/vendor/maxmind-db/reader/tests/MaxMind/Db/Test/ReaderTest.php, line 113

Class

ReaderTest

Namespace

MaxMind\Db\Test\Reader

Code

public function testV6AddressV4Database() {
  $reader = new Reader('tests/data/test-data/MaxMind-DB-test-ipv4-24.mmdb');
  $reader
    ->get('2001::');
}