You are here

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

@expectedException MaxMind\Db\Reader\InvalidDatabaseException @expectedExceptionMessage Error opening database file (README.md). Is this a valid MaxMind DB file?

File

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

Class

ReaderTest

Namespace

MaxMind\Db\Test\Reader

Code

public function testNonDatabase() {
  new Reader('README.md');
}