release 1.7.6
[m6w6/ext-http] / tests / HttpResponse_005.phpt
1 --TEST--
2 HttpResponse file not found
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkmin("5.2.5");
8 ?>
9 --FILE--
10 <?php
11 ini_set("error_reporting", 0);
12 ini_set("default_mimetype", "text/plain");
13
14 HttpResponse::setContentType("application/pdf");
15 HttpResponse::setContentDisposition("doc.pdf");
16 HttpResponse::setFile("__nonexistant__.pdf");
17 HttpResponse::send();
18 ?>
19 --EXPECTF--
20 Status: 404%s
21 X-Powered-By: PHP/%s
22 Content-Type: text/plain
23
24 File not found