- fix PHP4 build (has no only_exceptions INI setting
[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 checkver(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/%s
18 ETag: "3858f62230ac3c915f300c664312c63f"
19 Cache-Control: public, must-revalidate, max_age=3600
20 Last-Modified: %s, %d %s 20%d %d:%d:%d GMT
21 Content-Type: %s
22 Accept-Ranges: bytes
23
24 foobar