diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/config/disabled_function_local_var_array_not_array.ini | 1 | ||||
| -rw-r--r-- | src/tests/disabled_functions_local_var_array_not_array.phpt | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/tests/config/disabled_function_local_var_array_not_array.ini b/src/tests/config/disabled_function_local_var_array_not_array.ini new file mode 100644 index 0000000..ea25d1f --- /dev/null +++ b/src/tests/config/disabled_function_local_var_array_not_array.ini | |||
| @@ -0,0 +1 @@ | |||
| sp.disable_function.function("foobar").var("a").value("test").drop().simulation(); | |||
diff --git a/src/tests/disabled_functions_local_var_array_not_array.phpt b/src/tests/disabled_functions_local_var_array_not_array.phpt new file mode 100644 index 0000000..54e8719 --- /dev/null +++ b/src/tests/disabled_functions_local_var_array_not_array.phpt | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable functions | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var_array_not_array.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | function foobar($a) { | ||
| 10 | var_dump($a); | ||
| 11 | } | ||
| 12 | $a = ["lol"=>2, "test"=>1]; | ||
| 13 | foobar("test"); | ||
| 14 | |||
| 15 | ?> | ||
| 16 | --EXPECTF-- | ||
| 17 | string(4) "test" | ||
