You are here

public function ReaderTest::testNoGetArgs 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::testNoGetArgs()

@expectedException InvalidArgumentException

This test only matters for the extension.

File

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

Class

ReaderTest

Namespace

MaxMind\Db\Test\Reader

Code

public function testNoGetArgs() {
  if (extension_loaded('maxminddb')) {
    $reader = new Reader('tests/data/test-data/MaxMind-DB-test-decoder.mmdb');
    $reader
      ->get();
  }
  else {
    throw new \InvalidArgumentException();
  }
}