From 9a0400bdbc7d4decb32fe8fa3960e9e77f9fe898 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 27 Oct 2017 17:22:35 +0200 Subject: Bump the coverage --- ...isabled_functions_param_array_several_levels.phpt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/tests/disabled_functions_param_array_several_levels.phpt (limited to 'src/tests/disabled_functions_param_array_several_levels.phpt') diff --git a/src/tests/disabled_functions_param_array_several_levels.phpt b/src/tests/disabled_functions_param_array_several_levels.phpt new file mode 100644 index 0000000..cef6ded --- /dev/null +++ b/src/tests/disabled_functions_param_array_several_levels.phpt @@ -0,0 +1,20 @@ +--TEST-- +Disable functions - match on an array value buried in several levels +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini +--FILE-- +Array("pof"=>"pif", "foo"=>Array("lol"=>"bbb")), "a"=>"cccc"); +foo($a); + +$a=Array("test2"=>Array("foo"=>Array("lol"=>"aaa")), "a"=>"dddd"); +foo($a); +?> +--EXPECTF-- +cccc +[snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'foo' in %a/tests/disabled_functions_param_array_several_levels.php:3 has been disabled, because its argument 'arr' content (Array) matched the rule '4'. -- cgit v1.3