diff options
Diffstat (limited to 'src/tests/disable_function/disabled_functions_runtime.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_functions_runtime.phpt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/tests/disable_function/disabled_functions_runtime.phpt b/src/tests/disable_function/disabled_functions_runtime.phpt index 16ecfdb..8175a77 100644 --- a/src/tests/disable_function/disabled_functions_runtime.phpt +++ b/src/tests/disable_function/disabled_functions_runtime.phpt | |||
| @@ -6,8 +6,12 @@ Disable functions - runtime inclusion | |||
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_runtime.ini | 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_runtime.ini |
| 7 | --FILE-- | 7 | --FILE-- |
| 8 | <?php | 8 | <?php |
| 9 | |||
| 10 | $dir = __DIR__; | 9 | $dir = __DIR__; |
| 10 | |||
| 11 | // Just in case | ||
| 12 | @unlink("file_to_include1.php"); | ||
| 13 | @unlink("file_to_include2.php"); | ||
| 14 | |||
| 11 | $content = '<?php function test($param) { echo $param . "\n"; }'; | 15 | $content = '<?php function test($param) { echo $param . "\n"; }'; |
| 12 | file_put_contents('file_to_include1.php', $content); | 16 | file_put_contents('file_to_include1.php', $content); |
| 13 | file_put_contents('file_to_include2.php', $content); | 17 | file_put_contents('file_to_include2.php', $content); |
| @@ -21,11 +25,6 @@ if (rand() % 2) { | |||
| 21 | test('1338');test('1337'); | 25 | test('1338');test('1337'); |
| 22 | 26 | ||
| 23 | ?> | 27 | ?> |
| 24 | --CLEAN-- | ||
| 25 | <?php | ||
| 26 | unlink("file_to_include1.php"); | ||
| 27 | unlink("file_to_include2.php"); | ||
| 28 | ?> | ||
| 29 | --EXPECTF-- | 28 | --EXPECTF-- |
| 30 | 1338 | 29 | 1338 |
| 31 | 30 | ||
