You are here

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

@expectedException InvalidArgumentException

This test only matters for the extension.

File

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

Class

ReaderTest

Namespace

MaxMind\Db\Test\Reader

Code

public function testNoConstructorArgs() {
  if (extension_loaded('maxminddb')) {
    new Reader();
  }
  else {
    throw new \InvalidArgumentException();
  }
}