diff options
| author | jvoisin | 2018-02-06 17:11:17 +0100 |
|---|---|---|
| committer | jvoisin | 2018-02-06 17:11:17 +0100 |
| commit | 86e82aaa0cef705be3657d201ac7bccc0fafeb28 (patch) | |
| tree | 750245ff1c3ea1399cab0ef2c1f4ead3c2aceeb4 /src/tests/disabled_functions_param_pos2.phpt | |
| parent | 07245d709e4dd9f8467f724b4d61ae55a5446aa9 (diff) | |
Increase a bit the coverage
Diffstat (limited to 'src/tests/disabled_functions_param_pos2.phpt')
| -rw-r--r-- | src/tests/disabled_functions_param_pos2.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tests/disabled_functions_param_pos2.phpt b/src/tests/disabled_functions_param_pos2.phpt new file mode 100644 index 0000000..fd58ffc --- /dev/null +++ b/src/tests/disabled_functions_param_pos2.phpt | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable functions - match on argument's position, not the first time | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/disabled_functions_pos.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | strlen("od"); | ||
| 10 | strlen("id"); | ||
| 11 | ?> | ||
| 12 | --EXPECTF-- | ||
| 13 | [snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'strlen' in %a/disabled_functions_param_pos2.php:3 has been disabled, because its argument 'str' content (id) matched the rule 'strlen array'. | ||
