From 6c458dcf33ae2b1fb17bf9104ab0bb4fa6f23910 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 10 Oct 2017 13:29:31 +0200 Subject: Increase a bit the coverage --- src/tests/broken_conf_config_regexp_no_closing_paren.phpt | 10 ++++++++++ src/tests/config/broken_config_regexp_no_closing_paren.ini | 1 + 2 files changed, 11 insertions(+) create mode 100644 src/tests/broken_conf_config_regexp_no_closing_paren.phpt create mode 100644 src/tests/config/broken_config_regexp_no_closing_paren.ini diff --git a/src/tests/broken_conf_config_regexp_no_closing_paren.phpt b/src/tests/broken_conf_config_regexp_no_closing_paren.phpt new file mode 100644 index 0000000..a57286d --- /dev/null +++ b/src/tests/broken_conf_config_regexp_no_closing_paren.phpt @@ -0,0 +1,10 @@ +--TEST-- +Broken configuration - regexp without a closing parenthesis +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/broken_config_regexp_no_closing_paren.ini +--FILE-- +--EXPECT-- +[snuffleupagus][0.0.0.0][error][error] There is an issue with the parsing of '"*."': it doesn't look like a valid string on line 1. +[snuffleupagus][0.0.0.0][config][error] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1. diff --git a/src/tests/config/broken_config_regexp_no_closing_paren.ini b/src/tests/config/broken_config_regexp_no_closing_paren.ini new file mode 100644 index 0000000..ae7094f --- /dev/null +++ b/src/tests/config/broken_config_regexp_no_closing_paren.ini @@ -0,0 +1 @@ +sp.disable_functions.function_r("^system$").drop().filename_r("*." -- cgit v1.3