diff options
Diffstat (limited to 'src/tests/disable_function/disabled_functions_upper.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_functions_upper.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_upper.phpt b/src/tests/disable_function/disabled_functions_upper.phpt new file mode 100644 index 0000000..8fa8ea3 --- /dev/null +++ b/src/tests/disable_function/disabled_functions_upper.phpt | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable functions - uppercase | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/disabled_functions.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | sYSTEm("id"); | ||
| 10 | pRINTf("printf in simulation mode\n"); | ||
| 11 | pRINT("print in disabled mode\n"); | ||
| 12 | vaR_DUmp("this is a super test"); | ||
| 13 | echo sTRPOs("pouet", "o"); | ||
| 14 | ?> | ||
| 15 | --EXPECTF-- | ||
| 16 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/disabled_functions_upper.php on line 2 \ No newline at end of file | ||
