diff options
| author | jvoisin | 2017-10-23 22:57:53 +0200 |
|---|---|---|
| committer | jvoisin | 2017-10-23 22:57:53 +0200 |
| commit | 970d12baa847455ac96d734332b7dad9638c7146 (patch) | |
| tree | 174ecaa8053c46c637d9513bee79ce877baeab99 | |
| parent | a8ab6484c1cf08bb5669b2f46f933845cc81f077 (diff) | |
Add a test for non-existent configuration file
| -rw-r--r-- | src/tests/inexistent_conf_file_list.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/inexistent_conf_file_list.phpt b/src/tests/inexistent_conf_file_list.phpt new file mode 100644 index 0000000..afb77a2 --- /dev/null +++ b/src/tests/inexistent_conf_file_list.phpt | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | --TEST-- | ||
| 2 | Non-existent configuration file in a list | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/../../config/default.ini,{PWD}/non_existent_configuration_file | ||
| 7 | --FILE-- | ||
| 8 | <?php ?> | ||
| 9 | --EXPECTF-- | ||
| 10 | [snuffleupagus][0.0.0.0][config][error] Could not open configuration file%a/non_existent_configuration_file : No such file or directory | ||
