diff options
| author | Ben Fuhrmannek | 2021-08-10 16:45:40 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-08-10 16:45:40 +0200 |
| commit | f3d5d251875ee7f854a3df38709eedef4c6d1a31 (patch) | |
| tree | d8e60b9a94e51bffdac913ed96380a41fb272bdf /src/tests/broken_configuration/broken_conf_enable_disable2.phpt | |
| parent | dce966ffec7dfdae2b701d581d71df6a5a542db9 (diff) | |
prevent option to be enabled and then disabled
Diffstat (limited to 'src/tests/broken_configuration/broken_conf_enable_disable2.phpt')
| -rw-r--r-- | src/tests/broken_configuration/broken_conf_enable_disable2.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tests/broken_configuration/broken_conf_enable_disable2.phpt b/src/tests/broken_configuration/broken_conf_enable_disable2.phpt new file mode 100644 index 0000000..0d6fb8c --- /dev/null +++ b/src/tests/broken_configuration/broken_conf_enable_disable2.phpt | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | --TEST-- | ||
| 2 | Global strict mode | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | ||
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 6 | --INI-- | ||
| 7 | sp.configuration_file={PWD}/../broken_configuration/config/broken_conf_enable_disable2.ini | ||
| 8 | --FILE-- | ||
| 9 | --EXPECTF-- | ||
| 10 | PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] A rule can't be enabled and disabled on line 2 in Unknown on line 0 | ||
| 11 | |||
| 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] A rule can't be enabled and disabled on line 2 in Unknown on line 0 | ||
| 13 | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | ||
| 15 | Could not startup. | ||
