TimeTrex Community Edition v16.2.0
This commit is contained in:
12
vendor/maxmind-db/reader/ext/tests/001-load.phpt
vendored
Normal file
12
vendor/maxmind-db/reader/ext/tests/001-load.phpt
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
--TEST--
|
||||
Check for maxminddb presence
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded('maxminddb')) {
|
||||
echo 'skip';
|
||||
} ?>
|
||||
--FILE--
|
||||
<?php
|
||||
echo 'maxminddb extension is available';
|
||||
?>
|
||||
--EXPECT--
|
||||
maxminddb extension is available
|
13
vendor/maxmind-db/reader/ext/tests/002-final.phpt
vendored
Normal file
13
vendor/maxmind-db/reader/ext/tests/002-final.phpt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
--TEST--
|
||||
Check that Reader class is not final
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded('maxminddb')) {
|
||||
echo 'skip';
|
||||
} ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$reflectionClass = new \ReflectionClass('MaxMind\Db\Reader');
|
||||
var_dump($reflectionClass->isFinal());
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(false)
|
12
vendor/maxmind-db/reader/ext/tests/003-open-basedir.phpt
vendored
Normal file
12
vendor/maxmind-db/reader/ext/tests/003-open-basedir.phpt
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
--TEST--
|
||||
openbase_dir is followed
|
||||
--INI--
|
||||
open_basedir=/--dne--
|
||||
--FILE--
|
||||
<?php
|
||||
use MaxMind\Db\Reader;
|
||||
|
||||
$reader = new Reader('/usr/local/share/GeoIP/GeoIP2-City.mmdb');
|
||||
?>
|
||||
--EXPECTREGEX--
|
||||
.*open_basedir restriction in effect.*
|
Reference in New Issue
Block a user