summaryrefslogtreecommitdiff
path: root/src/tests/glob_config.phpt
diff options
context:
space:
mode:
authorSebastien Blot2018-01-18 11:07:06 +0100
committerSebastien Blot2018-01-18 11:08:08 +0100
commita09a48c605a36e052446f47b4e0eb98f9b8398a2 (patch)
tree580befadb5d0c999058da8c5643bea543909c5d6 /src/tests/glob_config.phpt
parent8b69ee4f557bb1314d98afb09ab133d036f30483 (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.phpt23
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--
2Multiple configuration files
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/config_multi*.ini
7--FILE--
8<?php
9function foo() {
10echo "1\n";
11}
12function bla() {
13echo "2\n";
14}
15foo();
16bla();
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.
201
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.
222
23