diff options
| author | Stefan Esser | 2014-02-18 14:52:12 +0100 |
|---|---|---|
| committer | Stefan Esser | 2014-02-18 14:52:12 +0100 |
| commit | 6fef70730793eccc4943bca48c47439cd19b213e (patch) | |
| tree | 832e88b95420d99253cf61480df810c548992215 /tests/cookie/crypt.no_encryption.phpt | |
| parent | 80e2f83cff1750937ba02916d2326ce75e09ef4c (diff) | |
Some tests for the cookie encryption feature from Ben
Diffstat (limited to 'tests/cookie/crypt.no_encryption.phpt')
| -rw-r--r-- | tests/cookie/crypt.no_encryption.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/cookie/crypt.no_encryption.phpt b/tests/cookie/crypt.no_encryption.phpt new file mode 100644 index 0000000..095ce5f --- /dev/null +++ b/tests/cookie/crypt.no_encryption.phpt | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | --TEST-- | ||
| 2 | cookie without encryption | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipif.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.cookie.encrypt=0 | ||
| 7 | --COOKIE-- | ||
| 8 | a=b | ||
| 9 | --FILE-- | ||
| 10 | <?php | ||
| 11 | setcookie('foo', 'bar'); | ||
| 12 | $ch = preg_grep("/^Set-Cookie:/", headers_list()); | ||
| 13 | echo join("\n", array_values($ch)); | ||
| 14 | ?> | ||
| 15 | --EXPECTF-- | ||
| 16 | Set-Cookie: foo=bar \ No newline at end of file | ||
