summaryrefslogtreecommitdiff
path: root/src/tests/broken_conf_allow_broken_enabled.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/broken_conf_allow_broken_enabled.phpt')
-rw-r--r--src/tests/broken_conf_allow_broken_enabled.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/broken_conf_allow_broken_enabled.phpt b/src/tests/broken_conf_allow_broken_enabled.phpt
new file mode 100644
index 0000000..452595b
--- /dev/null
+++ b/src/tests/broken_conf_allow_broken_enabled.phpt
@@ -0,0 +1,16 @@
1--TEST--
2Broken configuration with allow broken turned on
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/broken_conf.ini
7sp.allow_broken_configuration=On
8--FILE--
9<?php
10echo 1337;
11?>
12--EXPECT--
13PHP Fatal error: [snuffleupagus][config] Invalid configuration prefix for 'this is a broken line' on line 1 in Unknown on line 0
14
15Fatal error: [snuffleupagus][config] Invalid configuration prefix for 'this is a broken line' on line 1 in Unknown on line 0
161337