summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorjvoisin2017-12-28 11:27:06 +0100
committerjvoisin2017-12-28 11:27:06 +0100
commit89432f57aa9769d2efd5b8934241d10b005afd1a (patch)
tree017061381147cb34c47ee9325cc3ab26a30c24db /src/tests
parentad4c76191bded05c419524a6fe03a14157b767ff (diff)
Implement hooking on user-defined functions return values
This should close #99, thanks to @blotus for the implementation idea!
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/disabled_functions_ret_type_object.phpt3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/disabled_functions_ret_type_object.phpt b/src/tests/disabled_functions_ret_type_object.phpt
index 66f298c..eb07cc3 100644
--- a/src/tests/disabled_functions_ret_type_object.phpt
+++ b/src/tests/disabled_functions_ret_type_object.phpt
@@ -4,8 +4,6 @@ Disable functions check on `ret` by type matching (object).
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> 4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI-- 5--INI--
6sp.configuration_file={PWD}/config/disabled_functions_ret_type_object.ini 6sp.configuration_file={PWD}/config/disabled_functions_ret_type_object.ini
7--XFAIL--
8We're not implementing hooking on retval of user functions yet
9--FILE-- 7--FILE--
10<?php 8<?php
11function a(){ 9function a(){
@@ -15,3 +13,4 @@ $var = a();
15echo "fail"; 13echo "fail";
16?> 14?>
17--EXPECTF-- 15--EXPECTF--
16[snuffleupagus][0.0.0.0][disabled_function][drop] The execution has been aborted in %a/tests/disabled_functions_ret_type_object.php:5, because the return value (OBJECT) of the function 'a' matched a rule.