diff options
| author | jvoisin | 2017-12-28 14:08:37 +0100 |
|---|---|---|
| committer | jvoisin | 2017-12-28 14:08:37 +0100 |
| commit | 01b2cf1e7a3867d6335ae4bbb5bff859d969f670 (patch) | |
| tree | 8cf1f29c14e5aea4286071273670da0640bbf7fc /src/tests | |
| parent | 4b2185997b3e5ef0154450aace3b66142842cf7c (diff) | |
Bump a bit the coverage
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/broken_conf_cookie_name_and_regexp.phpt | 9 | ||||
| -rw-r--r-- | src/tests/config/broken_conf_cookie_name_and_regexp.ini | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/broken_conf_cookie_name_and_regexp.phpt b/src/tests/broken_conf_cookie_name_and_regexp.phpt new file mode 100644 index 0000000..8b0dbfa --- /dev/null +++ b/src/tests/broken_conf_cookie_name_and_regexp.phpt | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | --TEST-- | ||
| 2 | Borken configuration - encrypted cookie with name and regexp | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/broken_conf_cookie_name_and_regexp.ini | ||
| 7 | --FILE-- | ||
| 8 | --EXPECT-- | ||
| 9 | [snuffleupagus][0.0.0.0][config][error] name and name_r are mutually exclusive on line 2. | ||
diff --git a/src/tests/config/broken_conf_cookie_name_and_regexp.ini b/src/tests/config/broken_conf_cookie_name_and_regexp.ini new file mode 100644 index 0000000..503889b --- /dev/null +++ b/src/tests/config/broken_conf_cookie_name_and_regexp.ini | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | sp.global.secret_key("abcdef").cookie_env_var("REMOTE_ADDR"); | ||
| 2 | sp.cookie.name("my_cookie_name").name_r("my_cookie_regexp").encrypt(); | ||
