diff options
Diffstat (limited to 'src/tests/disabled_function_print.phpt')
| -rw-r--r-- | src/tests/disabled_function_print.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tests/disabled_function_print.phpt b/src/tests/disabled_function_print.phpt new file mode 100644 index 0000000..fc05360 --- /dev/null +++ b/src/tests/disabled_function_print.phpt | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | --TEST-- | ||
| 2 | Echo hooking | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/disabled_function_print.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | function test($a) { | ||
| 10 | print "$a"; | ||
| 11 | } | ||
| 12 | print "qwe"; | ||
| 13 | test("rty"); | ||
| 14 | test("oops"); | ||
| 15 | ?> | ||
| 16 | --CLEAN-- | ||
| 17 | --EXPECTF-- | ||
| 18 | qwerty[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/tests/disabled_function_print.php:3. | ||
