xref: /PHP-8.0/ext/phar/tests/bug54395.phpt (revision f8d79582)
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--EXPECT--
16string(25) "Mounting of 1 to 1 failed"
17