summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/disabled_functions_chain_call_user_func_ret.phpt13
-rw-r--r--src/tests/disabled_functions_ret_user.phpt4
2 files changed, 13 insertions, 4 deletions
diff --git a/src/tests/disabled_functions_chain_call_user_func_ret.phpt b/src/tests/disabled_functions_chain_call_user_func_ret.phpt
index 44c9b24..d0ee389 100644
--- a/src/tests/disabled_functions_chain_call_user_func_ret.phpt
+++ b/src/tests/disabled_functions_chain_call_user_func_ret.phpt
@@ -21,6 +21,15 @@ echo one('matching') . "\n";
21echo one('still not matching') . "\n"; 21echo one('still not matching') . "\n";
22 22
23?> 23?>
24--XFAIL--
25--EXPECTF-- 24--EXPECTF--
26Match on ret is broken :/ 25one
26two
27not matching_one
28one
29two
30
31Warning: [snuffleupagus][disabled_function] Aborted execution on return of the function 'two', because the function returned 'matching_two', which matched a rule in %a/tests/disabled_functions_chain_call_user_func_ret.php on line %d
32matching_one
33one
34two
35still not matching_one
diff --git a/src/tests/disabled_functions_ret_user.phpt b/src/tests/disabled_functions_ret_user.phpt
index 597a6b8..89c1bce 100644
--- a/src/tests/disabled_functions_ret_user.phpt
+++ b/src/tests/disabled_functions_ret_user.phpt
@@ -12,5 +12,5 @@ function qwe() {
12qwe(); 12qwe();
13echo 1; 13echo 1;
14?> 14?>
15--EXPECT-- 15--EXPECTF--
161 16Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'qwe', because the function returned 'asd', which matched a rule in %a/tests/disabled_functions_ret_user.php on line %d