diff options
Diffstat (limited to 'src/tests/disable_function/disabled_functions_register_tick_function.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_functions_register_tick_function.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_register_tick_function.phpt b/src/tests/disable_function/disabled_functions_register_tick_function.phpt new file mode 100644 index 0000000..6e3fb6f --- /dev/null +++ b/src/tests/disable_function/disabled_functions_register_tick_function.phpt | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable functions - Called with register_tick_function | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/config_disabled_user_functions.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | declare(ticks=1); | ||
| 10 | function my_super_function() { | ||
| 11 | echo 'lose'; | ||
| 12 | } | ||
| 13 | echo "1337\n"; | ||
| 14 | register_tick_function('my_super_function'); | ||
| 15 | ?> | ||
| 16 | --EXPECTF-- | ||
| 17 | 1337 | ||
| 18 | |||
| 19 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'my_super_function' in %a/disabled_functions_register_tick_function.php on line 4 \ No newline at end of file | ||
