You are here

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

@expectedException BadMethodCallException @expectedExceptionMessage Attempt to close a closed MaxMind DB.

File

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

Class

ReaderTest

Namespace

MaxMind\Db\Test\Reader

Code

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