Merge branch 'master' into phpng
[m6w6/ext-http] / tests / envresponse002.phpt
1 --TEST--
2 env response cache negative
3 --SKIPIF--
4 <?php include "skipif.inc"; ?>
5 --GET--
6 a=b
7 --ENV--
8 HTTP_IF_MODIFIED_SINCE=Fri, 13 Feb 2009 23:31:30 GMT
9 HTTP_IF_NONE_MATCH=0000-00-0000
10 --FILE--
11 <?php
12 $r = new http\Env\Response;
13 $r->setBody(new http\Message\Body(fopen(__FILE__,"rb")));
14 $r->setEtag("abc");
15 $r->setLastModified(1234567891);
16 $r->send();
17 ?>
18 --EXPECTHEADERS--
19 ETag: "abc"
20 Last-Modified: Fri, 13 Feb 2009 23:31:31 GMT
21 --EXPECT--
22 <?php
23 $r = new http\Env\Response;
24 $r->setBody(new http\Message\Body(fopen(__FILE__,"rb")));
25 $r->setEtag("abc");
26 $r->setLastModified(1234567891);
27 $r->send();
28 ?>