From 86e82aaa0cef705be3657d201ac7bccc0fafeb28 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 6 Feb 2018 17:11:17 +0100 Subject: Increase a bit the coverage --- src/tests/disabled_functions_param_pos2.phpt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/tests/disabled_functions_param_pos2.phpt (limited to 'src/tests/disabled_functions_param_pos2.phpt') 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 @@ +--TEST-- +Disable functions - match on argument's position, not the first time +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/disabled_functions_pos.ini +--FILE-- + +--EXPECTF-- +[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'. -- cgit v1.3