summaryrefslogtreecommitdiff
path: root/src/tests/encrypt_cookies_no_env.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/encrypt_cookies_no_env.phpt')
-rw-r--r--src/tests/encrypt_cookies_no_env.phpt21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/tests/encrypt_cookies_no_env.phpt b/src/tests/encrypt_cookies_no_env.phpt
deleted file mode 100644
index d9d9138..0000000
--- a/src/tests/encrypt_cookies_no_env.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
1--TEST--
2Cookie encryption - no environment variable specified
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/encrypt_cookies_no_env.ini
7display_errors=1
8display_startup_errors=1
9error_reporting=E_ALL
10--COOKIE--
11super_cookie=1337;awful_cookie=awful_cookie_value;
12--ENV--
13return <<<EOF
14REMOTE_ADDR=127.0.0.1
15EOF;
16--FILE--
17<?php echo "1"; ?>
18--EXPECT--
19Fatal error: [snuffleupagus][config] Invalid configuration file in Unknown on line 0
20
21Fatal error: [snuffleupagus][config] You're trying to use the cookie encryption featureon line 2 without having set the `.cookie_env_var` option in`sp.global`: please set it first in Unknown on line 0