From aa550b9abadc109a2c89a7cd6dd047ac2a953027 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 6 Oct 2018 16:15:00 +0000 Subject: Bump a bit the coverage * `setcookie` doesn't always return `true` anymore * clang-format * Cookies with invalid decryption are dropped, but the request isn't anymore * faulty unserialize are now dumpable--- ...oken_conf_cookie_encryption_without_encryption_key.phpt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/tests/broken_conf_cookie_encryption_without_encryption_key.phpt (limited to 'src/tests/broken_conf_cookie_encryption_without_encryption_key.phpt') diff --git a/src/tests/broken_conf_cookie_encryption_without_encryption_key.phpt b/src/tests/broken_conf_cookie_encryption_without_encryption_key.phpt new file mode 100644 index 0000000..d0b7c0d --- /dev/null +++ b/src/tests/broken_conf_cookie_encryption_without_encryption_key.phpt @@ -0,0 +1,14 @@ +--TEST-- +Borken configuration - encrypted cookie without encryption key +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/broken_conf_cookie_encryption_without_encryption_key.ini +--FILE-- +--EXPECT-- +PHP Fatal error: [snuffleupagus][config] You're trying to use the cookie encryption featureon line 2 without having set the `.encryption_key` option in`sp.global`: please set it first in Unknown on line 0 + +Fatal error: [snuffleupagus][config] You're trying to use the cookie encryption featureon line 2 without having set the `.encryption_key` option in`sp.global`: please set it first in Unknown on line 0 + +Fatal error: [snuffleupagus][config] Invalid configuration file in Unknown on line 0 +Could not startup. -- cgit v1.3