From b3286eb015079950554508e0724fd5f12c71833f Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 24 May 2023 21:18:39 -0500 Subject: add geolocation functionality --- vendor/maxmind-db/reader/ext/tests/001-load.phpt | 12 ++++++++++++ vendor/maxmind-db/reader/ext/tests/002-final.phpt | 13 +++++++++++++ vendor/maxmind-db/reader/ext/tests/003-open-basedir.phpt | 12 ++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 vendor/maxmind-db/reader/ext/tests/001-load.phpt create mode 100644 vendor/maxmind-db/reader/ext/tests/002-final.phpt create mode 100644 vendor/maxmind-db/reader/ext/tests/003-open-basedir.phpt (limited to 'vendor/maxmind-db/reader/ext/tests') diff --git a/vendor/maxmind-db/reader/ext/tests/001-load.phpt b/vendor/maxmind-db/reader/ext/tests/001-load.phpt new file mode 100644 index 0000000..09810ee --- /dev/null +++ b/vendor/maxmind-db/reader/ext/tests/001-load.phpt @@ -0,0 +1,12 @@ +--TEST-- +Check for maxminddb presence +--SKIPIF-- + +--FILE-- + +--EXPECT-- +maxminddb extension is available diff --git a/vendor/maxmind-db/reader/ext/tests/002-final.phpt b/vendor/maxmind-db/reader/ext/tests/002-final.phpt new file mode 100644 index 0000000..d91b7d0 --- /dev/null +++ b/vendor/maxmind-db/reader/ext/tests/002-final.phpt @@ -0,0 +1,13 @@ +--TEST-- +Check that Reader class is not final +--SKIPIF-- + +--FILE-- +isFinal()); +?> +--EXPECT-- +bool(false) diff --git a/vendor/maxmind-db/reader/ext/tests/003-open-basedir.phpt b/vendor/maxmind-db/reader/ext/tests/003-open-basedir.phpt new file mode 100644 index 0000000..26e9781 --- /dev/null +++ b/vendor/maxmind-db/reader/ext/tests/003-open-basedir.phpt @@ -0,0 +1,12 @@ +--TEST-- +openbase_dir is followed +--INI-- +open_basedir=/--dne-- +--FILE-- + +--EXPECTREGEX-- +.*open_basedir restriction in effect.* -- cgit v1.2.3-70-g09d2