summaryrefslogtreecommitdiff
path: root/tests/cookie/crypt.no_encryption.phpt
diff options
context:
space:
mode:
authorStefan Esser2014-02-18 14:52:12 +0100
committerStefan Esser2014-02-18 14:52:12 +0100
commit6fef70730793eccc4943bca48c47439cd19b213e (patch)
tree832e88b95420d99253cf61480df810c548992215 /tests/cookie/crypt.no_encryption.phpt
parent80e2f83cff1750937ba02916d2326ce75e09ef4c (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.phpt16
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--
2cookie without encryption
3--SKIPIF--
4<?php include "../skipif.inc"; ?>
5--INI--
6suhosin.cookie.encrypt=0
7--COOKIE--
8a=b
9--FILE--
10<?php
11setcookie('foo', 'bar');
12$ch = preg_grep("/^Set-Cookie:/", headers_list());
13echo join("\n", array_values($ch));
14?>
15--EXPECTF--
16Set-Cookie: foo=bar \ No newline at end of file