php-8.0.30-src/ext/phar/tests/bug54395.phpt

17 lines
300 B
PHP

--TEST--
Bug #54395 (Phar::mount() crashes when calling with wrong parameters)
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE--
<?php
try {
phar::mount(1,1);
} catch (Exception $e) {
var_dump($e->getMessage());
}
?>
--EXPECT--
string(25) "Mounting of 1 to 1 failed"