public function ReaderTest::testNoConstructorArgs in Smart IP 7.2
Same name and namespace in other branches
- 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
Namespace
MaxMind\Db\Test\ReaderCode
public function testNoConstructorArgs() {
if (extension_loaded('maxminddb')) {
new Reader();
}
else {
throw new \InvalidArgumentException();
}
}