summaryrefslogtreecommitdiff
path: root/ext/phar/tests/zip/frontcontroller13.phar.phpt
blob: 5fc4b834e083f165d0832c8662bb55869d5196ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Phar front controller mime type not string/int zip-based
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--ENV--
SCRIPT_NAME=/frontcontroller13.phar.php/a.php
REQUEST_URI=/frontcontroller13.phar.php/a.php
--FILE_EXTERNAL--
frontcontroller7.phar.zip
--EXPECTHEADERS--
Content-type: text/html
--EXPECTF--
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Unknown mime type specifier used (not a string or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller13.phar.php:2
Stack trace:
#0 %sfrontcontroller13.phar.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
#1 {main}
  thrown in %sfrontcontroller13.phar.php on line 2