diff options
| author | jvoisin | 2020-12-28 20:45:33 +0100 |
|---|---|---|
| committer | jvoisin | 2020-12-31 14:14:26 +0100 |
| commit | 032718b7cb93c4143877e355e9bcb6935d8cedcf (patch) | |
| tree | 133c7dda7c02633dd2099a59ea9f28b43b0d9935 /src/tests/broken_configuration_php8/broken_conf.phpt | |
| parent | 72d52e5b6933b44ab9f01bc22e3d264626716cd4 (diff) | |
Add tests for broken configuration on php8
Diffstat (limited to 'src/tests/broken_configuration_php8/broken_conf.phpt')
| -rw-r--r-- | src/tests/broken_configuration_php8/broken_conf.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/broken_configuration_php8/broken_conf.phpt b/src/tests/broken_configuration_php8/broken_conf.phpt new file mode 100644 index 0000000..7dde7d6 --- /dev/null +++ b/src/tests/broken_configuration_php8/broken_conf.phpt | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | --TEST-- | ||
| 2 | Broken configuration | ||
| 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}/config/broken_conf.ini | ||
| 8 | --FILE-- | ||
| 9 | --EXPECT-- | ||
| 10 | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration prefix for 'this is a broken line' on line 1 in Unknown on line 0 | ||
| 12 | |||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | ||
| 14 | Could not startup. | ||
