summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_ret3.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disabled_functions_ret3.phpt')
-rw-r--r--src/tests/disabled_functions_ret3.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/tests/disabled_functions_ret3.phpt b/src/tests/disabled_functions_ret3.phpt
new file mode 100644
index 0000000..d5f96d0
--- /dev/null
+++ b/src/tests/disabled_functions_ret3.phpt
@@ -0,0 +1,22 @@
1--TEST--
2Disable functions check on `ret`.
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/disabled_functions_ret.ini
7--FILE--
8<?php
9class Bob {
10 function a() {
11 echo("We're in function `a`.\n");
12 return 1;
13 }
14}
15$b = new Bob();
16echo "`a` returned: " . $b->a() . ".\n";
17echo("We're at the end of the execution.\n");
18?>
19--EXPECTF--
20We're in function `a`.
21`a` returned: 1.
22We're at the end of the execution. \ No newline at end of file