You are here

public function ReaderTest::testIpValidation in Smart IP 6.2

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

@expectedException InvalidArgumentException @expectedExceptionMessage The value "not_ip" is not a valid IP address.

File

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

Class

ReaderTest

Namespace

MaxMind\Db\Test\Reader

Code

public function testIpValidation() {
  $reader = new Reader('tests/data/test-data/MaxMind-DB-test-decoder.mmdb');
  $reader
    ->get('not_ip');
}