diff options
| author | jvoisin | 2017-10-27 17:22:35 +0200 |
|---|---|---|
| committer | jvoisin | 2017-10-27 17:22:35 +0200 |
| commit | 9a0400bdbc7d4decb32fe8fa3960e9e77f9fe898 (patch) | |
| tree | a27a8b5569226a4586b60876b123edc91054e9e4 /src/tests/disabled_functions_param_array_deref.phpt | |
| parent | 70498a7cce831049b47051813b850665c5547927 (diff) | |
Bump the coverage
Diffstat (limited to '')
| -rw-r--r-- | src/tests/disabled_functions_param_array_deref.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/tests/disabled_functions_param_array_deref.phpt b/src/tests/disabled_functions_param_array_deref.phpt new file mode 100644 index 0000000..556cb06 --- /dev/null +++ b/src/tests/disabled_functions_param_array_deref.phpt | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable functions | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | function foo($arr) { | ||
| 10 | echo $arr["a"]."\n"; | ||
| 11 | } | ||
| 12 | |||
| 13 | $a=Array("bla"=>"aaa", "a"=>"eee" ); | ||
| 14 | foo($a); | ||
| 15 | |||
| 16 | $a=Array("bla"=>"aaa", "a"=>"abcdef" ); | ||
| 17 | foo($a); | ||
| 18 | |||
| 19 | $a=Array("bla"=>"abcdef", "not_bla"=>"134"); | ||
| 20 | foo($a); | ||
| 21 | ?> | ||
| 22 | --EXPECTF-- | ||
| 23 | eee | ||
| 24 | abcdef | ||
| 25 | [snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'foo' in %a/tests/disabled_functions_param_array_deref.php:3 has been disabled, because its argument 'arr' content (Array) matched the rule '2'. | ||
