summaryrefslogtreecommitdiff
path: root/src/tests/encrypt_cookies_invalid_decryption_short_cookie.phpt
blob: e5b6bfcbbf626b0dd0772c5da0627ca01ea32ffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
Cookie encryption - invalid decryption in simulation mode with a short cookie
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_encrypted_cookies_simulation.ini
display_errors=1
display_startup_errors=1
error_reporting=E_ALL
--COOKIE--
super_cookie=AAA;awful_cookie=awful_cookie_value;
--ENV--
return <<<EOF
REMOTE_ADDR=127.0.0.1
EOF;
--FILE--
<?php var_dump($_COOKIE); ?>
--EXPECT--
array(2) {
  ["super_cookie"]=>
  string(3) "AAA"
  ["awful_cookie"]=>
  string(18) "awful_cookie_value"
}