diff options
| author | Sebastien Blot | 2018-01-18 11:07:06 +0100 |
|---|---|---|
| committer | Sebastien Blot | 2018-01-18 11:08:08 +0100 |
| commit | a09a48c605a36e052446f47b4e0eb98f9b8398a2 (patch) | |
| tree | 580befadb5d0c999058da8c5643bea543909c5d6 /src/tests/glob_config.phpt | |
| parent | 8b69ee4f557bb1314d98afb09ab133d036f30483 (diff) | |
Add globbing support for configuration file path (closes #125)
Diffstat (limited to 'src/tests/glob_config.phpt')
| -rw-r--r-- | src/tests/glob_config.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tests/glob_config.phpt b/src/tests/glob_config.phpt new file mode 100644 index 0000000..929664f --- /dev/null +++ b/src/tests/glob_config.phpt | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | --TEST-- | ||
| 2 | Multiple configuration files | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/config_multi*.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | function foo() { | ||
| 10 | echo "1\n"; | ||
| 11 | } | ||
| 12 | function bla() { | ||
| 13 | echo "2\n"; | ||
| 14 | } | ||
| 15 | foo(); | ||
| 16 | bla(); | ||
| 17 | ?> | ||
| 18 | --EXPECTF-- | ||
| 19 | [snuffleupagus][0.0.0.0][disabled_function][simulation] The call to the function 'foo' in %s/src/tests/glob_config.php:%d has been disabled. | ||
| 20 | 1 | ||
| 21 | [snuffleupagus][0.0.0.0][disabled_function][simulation] The call to the function 'bla' in %s/src/tests/glob_config.php:%d has been disabled. | ||
| 22 | 2 | ||
| 23 | |||
