fix title
[m6w6/ext-http] / tests / envresponsecookie001.phpt
1 --TEST--
2 env response cookie
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9
10 $r = new http\Env\Response;
11 $c = new http\Cookie;
12 $c->addCookie("foo","bar");
13 $c->setMaxAge(60);
14 $r->setCookie($c);
15 $r->setCookie("baz");
16 $r->setCookie(123);
17 $r->send(STDOUT);
18
19 ?>
20 --EXPECT--
21 HTTP/1.1 200 OK
22 Set-Cookie: foo=bar; max-age=60;
23 Set-Cookie: baz=1;
24 Set-Cookie: 123=1;
25 ETag: ""
26