c43e7f819330591c0d1d241b918dbf0afd90d354
[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.1);
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
21 X-Powered-By: PHP/%s
22 Content-Type: text/plain
23
24 File not found