diff options
| author | jvoisin | 2017-11-06 14:24:24 +0100 |
|---|---|---|
| committer | blotus | 2017-11-06 14:24:24 +0100 |
| commit | 8070f622122344ae52b55c3f80e43a1733ae59e2 (patch) | |
| tree | c117f5a2a27efb04a4161c2809b26641a2fec0e4 /src/tests/broken_conf_invalid_filename.phpt | |
| parent | 27876d63eecbac187921dcf9e8ab2b3341302c05 (diff) | |
53 absolute path (#62)
* Add error for relative path
Diffstat (limited to 'src/tests/broken_conf_invalid_filename.phpt')
| -rw-r--r-- | src/tests/broken_conf_invalid_filename.phpt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/broken_conf_invalid_filename.phpt b/src/tests/broken_conf_invalid_filename.phpt new file mode 100644 index 0000000..61b967b --- /dev/null +++ b/src/tests/broken_conf_invalid_filename.phpt | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | --TEST-- | ||
| 2 | Broken configuration filename without absolute path | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/broken_conf_invalid_filename.ini | ||
| 7 | --FILE-- | ||
| 8 | --EXPECTF-- | ||
| 9 | [snuffleupagus][0.0.0.0][config][error] Invalid configuration line: 'sp.disabled_functions.function("sprintf").filename("wrong file name").drop();':'.filename' must be an absolute path on line 1. | ||
