diff options
| author | jvoisin | 2017-10-10 13:29:31 +0200 |
|---|---|---|
| committer | jvoisin | 2017-10-10 13:29:31 +0200 |
| commit | 6c458dcf33ae2b1fb17bf9104ab0bb4fa6f23910 (patch) | |
| tree | 075f263a647d7a333a8032a4edbd41823998efff /src | |
| parent | 630c5ad199069b32aae5e7b15223bd10f6986504 (diff) | |
Increase a bit the coverage
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/broken_conf_config_regexp_no_closing_paren.phpt | 10 | ||||
| -rw-r--r-- | src/tests/config/broken_config_regexp_no_closing_paren.ini | 1 |
2 files changed, 11 insertions, 0 deletions
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 @@ | |||
| 1 | --TEST-- | ||
| 2 | Broken configuration - regexp without a closing parenthesis | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/broken_config_regexp_no_closing_paren.ini | ||
| 7 | --FILE-- | ||
| 8 | --EXPECT-- | ||
| 9 | [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. | ||
| 10 | [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("*." | |||
