branch off v1 as R_1_7
[m6w6/ext-http] / tests / HttpResponse_001.phpt
1 --TEST--
2 HttpResponse - send data with caching headers
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkmin("5.2.5");
7 checkcgi();
8 ?>
9 --FILE--
10 <?php
11 HttpResponse::setCache(true);
12 HttpResponse::setCacheControl('public', 3600);
13 HttpResponse::setData('foobar');
14 HttpResponse::send();
15 ?>
16 --EXPECTF--
17 X-Powered-By: PHP/%a
18 Cache-Control: public, must-revalidate, max-age=3600
19 Last-Modified: %a, %d %a 20%d %d:%d:%d GMT
20 Content-Type: %a
21 Accept-Ranges: bytes
22 ETag: "3858f62230ac3c915f300c664312c63f"
23 Content-Length: 6
24
25 foobar