From 9a0400bdbc7d4decb32fe8fa3960e9e77f9fe898 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 27 Oct 2017 17:22:35 +0200 Subject: Bump the coverage --- .../disabled_functions_param_array_deref.phpt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/tests/disabled_functions_param_array_deref.phpt (limited to 'src/tests/disabled_functions_param_array_deref.phpt') 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 @@ +--TEST-- +Disable functions +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini +--FILE-- +"aaa", "a"=>"eee" ); +foo($a); + +$a=Array("bla"=>"aaa", "a"=>"abcdef" ); +foo($a); + +$a=Array("bla"=>"abcdef", "not_bla"=>"134"); +foo($a); +?> +--EXPECTF-- +eee +abcdef +[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'. -- cgit v1.3