summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
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.