diff options
| author | jvoisin | 2017-10-03 10:38:42 +0200 |
|---|---|---|
| committer | jvoisin | 2017-10-03 10:38:42 +0200 |
| commit | 436fe561c6d1040a0cd3fc85a0aaf9e0cde09ac3 (patch) | |
| tree | 480be26faac9c738b4f6842b289bf777f308243b /src | |
| parent | a993fc385871f9654951197caff8305ed646c338 (diff) | |
Add a test for functions used in UPPERCASE
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/disabled_functions_upper.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/disabled_functions_upper.phpt b/src/tests/disabled_functions_upper.phpt new file mode 100644 index 0000000..4a7ed94 --- /dev/null +++ b/src/tests/disabled_functions_upper.phpt | |||
| @@ -0,0 +1,21 @@ | |||
| 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 | [snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'system' in %a/tests/disabled_functions_upper.php:%d has been disabled. | ||
| 17 | [snuffleupagus][0.0.0.0][disabled_function][notice] The call to the function 'printf' in %a/tests/disabled_functions_upper.php:%d has been disabled. | ||
| 18 | printf in simulation mode | ||
| 19 | print in disabled mode | ||
| 20 | [snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'var_dump' in %a/tests/disabled_functions_upper.php:%d has been disabled. | ||
| 21 | 1 | ||
