summaryrefslogtreecommitdiff
path: root/src/tests/php8
diff options
context:
space:
mode:
authorBen Fuhrmannek2021-02-16 11:16:59 +0100
committerBen Fuhrmannek2021-02-16 11:16:59 +0100
commit5484bcb5eb2714e7438927e2566c86a74d7c51af (patch)
treeb78326d2999397be4c08e06b23209981f82a4ea9 /src/tests/php8
parent7ac1e3866ef4f146c6c93a5ca13b9aebb14e936a (diff)
parentcecfdd808da67be908dbe7144cc8c74dfb3f855e (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/tests/php8')
-rw-r--r--src/tests/php8/inexistent_conf_file.phpt14
-rw-r--r--src/tests/php8/inexistent_conf_file_list.phpt14
2 files changed, 28 insertions, 0 deletions
diff --git a/src/tests/php8/inexistent_conf_file.phpt b/src/tests/php8/inexistent_conf_file.phpt
new file mode 100644
index 0000000..ac763aa
--- /dev/null
+++ b/src/tests/php8/inexistent_conf_file.phpt
@@ -0,0 +1,14 @@
1--TEST--
2Test for unexistent configuration file, in php8
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
5<?php if (PHP_VERSION_ID < 80000) print "skip"; ?>
6--INI--
7sp.configuration_file={PWD}/config/unexistent_configuration_file.ini
8--FILE--
9<?php ?>
10--EXPECTF--
11Fatal error: [snuffleupagus][0.0.0.0][config][log] Could not open configuration file %a/config/unexistent_configuration_file.ini : No such file or directory in Unknown on line 0
12
13Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0
14Could not startup.
diff --git a/src/tests/php8/inexistent_conf_file_list.phpt b/src/tests/php8/inexistent_conf_file_list.phpt
new file mode 100644
index 0000000..2309fc6
--- /dev/null
+++ b/src/tests/php8/inexistent_conf_file_list.phpt
@@ -0,0 +1,14 @@
1--TEST--
2Non-existent configuration file in a list in php8
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
5<?php if (PHP_VERSION_ID < 80000) print "skip"; ?>
6--INI--
7sp.configuration_file={PWD}/../../../config/default.rules,{PWD}/non_existent_configuration_file
8--FILE--
9<?php ?>
10--EXPECTF--
11Fatal error: [snuffleupagus][0.0.0.0][config][log] Could not open configuration file %a/non_existent_configuration_file : No such file or directory in Unknown on line 0
12
13Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0
14Could not startup.