diff options
Diffstat (limited to 'src/tests/disabled_functions_register_tick_function.phpt')
| -rw-r--r-- | src/tests/disabled_functions_register_tick_function.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/disabled_functions_register_tick_function.phpt b/src/tests/disabled_functions_register_tick_function.phpt index 1d18c07..2c32ff2 100644 --- a/src/tests/disabled_functions_register_tick_function.phpt +++ b/src/tests/disabled_functions_register_tick_function.phpt | |||
| @@ -3,16 +3,16 @@ Disable functions - Called with register_tick_function | |||
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> |
| 5 | --INI-- | 5 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_user_functions_die.ini | 6 | sp.configuration_file={PWD}/config/config_disabled_user_functions.ini |
| 7 | --FILE-- | 7 | --FILE-- |
| 8 | <?php | 8 | <?php |
| 9 | declare(ticks=1); | ||
| 9 | function my_super_function() { | 10 | function my_super_function() { |
| 10 | echo 'lose'; | 11 | echo 'lose'; |
| 11 | } | 12 | } |
| 12 | echo 1337; | 13 | echo "1337\n"; |
| 13 | register_tick_function('my_super_function'); | 14 | register_tick_function('my_super_function'); |
| 14 | ?> | 15 | ?> |
| 15 | --EXPECTF-- | 16 | --EXPECTF-- |
| 16 | 1337 | 17 | 1337 |
| 17 | [snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'die' in %a/tests/disabled_functions_register_tick_function.php:%d has been disabled. | 18 | [snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'my_super_function' in %a/src/tests/disabled_functions_register_tick_function.php:4 has been disabled. |
| 18 | --XFAIL-- | ||
