From e79f7e3bd992c7f0915ef9afe7afb6d79740527a Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 14 Jan 2019 19:29:25 +0000 Subject: Reorganize the testsuite Splitting the testsuite in several components makes it easier to manage and comprehend. This was also needed some some tests aren't passing on Alpine Linux, but we still want to run as many of them as we can on this platform.--- .../disabled_functions_param_array.phpt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/tests/disable_function/disabled_functions_param_array.phpt (limited to 'src/tests/disable_function/disabled_functions_param_array.phpt') diff --git a/src/tests/disable_function/disabled_functions_param_array.phpt b/src/tests/disable_function/disabled_functions_param_array.phpt new file mode 100644 index 0000000..37a02e0 --- /dev/null +++ b/src/tests/disable_function/disabled_functions_param_array.phpt @@ -0,0 +1,25 @@ +--TEST-- +Disable functions +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini +--FILE-- +"test1"); +foo($a); + +$a=Array("a"=>"abcde"); +foo($a); + +$a=Array("a"=>"abcd"); +foo($a); +?> +--EXPECTF-- +test1 +abcde + +Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo', because its argument '$arr' content (abcd) matched the rule '1' in %a/disabled_functions_param_array.php on line 3 \ No newline at end of file -- cgit v1.3