xref: /PHP-7.2/ext/phar/tests/bug54395.phpt (revision 4929964a)
1--TEST--
2Bug #54395 (Phar::mount() crashes when calling with wrong parameters)
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--FILE--
6<?php
7
8try {
9	phar::mount(1,1);
10} catch (Exception $e) {
11	var_dump($e->getMessage());
12}
13
14?>
15--EXPECTF--
16string(25) "Mounting of 1 to 1 failed"
17