From e7f541396715ee2895abcf73044b91ae9b746201 Mon Sep 17 00:00:00 2001 From: xXx-caillou-xXx Date: Wed, 20 Dec 2017 18:09:53 +0100 Subject: Better parsing of the rules Thanks to this huge commit from @xXx-caillou-xXx, we can now write amazingly flexible rules.--- src/tests/broken_conf_key_value.phpt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/tests/broken_conf_key_value.phpt (limited to 'src/tests/broken_conf_key_value.phpt') diff --git a/src/tests/broken_conf_key_value.phpt b/src/tests/broken_conf_key_value.phpt new file mode 100644 index 0000000..e9ee4a9 --- /dev/null +++ b/src/tests/broken_conf_key_value.phpt @@ -0,0 +1,9 @@ +--TEST-- +Broken configuration +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/broken_conf_key_value.ini +--FILE-- +--EXPECT-- +[snuffleupagus][0.0.0.0][config][error] Invalid configuration line: 'sp.disabled_functions.function("system").var("").value("").key("").drop();':`key` and `value` are mutually exclusive on line 1. -- cgit v1.3