diff options
author | Felipe Pena <felipe@php.net> | 2011-03-26 17:02:34 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2011-03-26 17:02:34 +0000 |
commit | 3acdca47030e6dc973cffc0063d45e1bef354a3e (patch) | |
tree | dba640dd19639e1638e2006654985474878219c8 /ext/phar/tests/bug54395.phpt | |
parent | 8138f7de406ef351e51ebec415738b646be2541e (diff) | |
download | php-git-3acdca47030e6dc973cffc0063d45e1bef354a3e.tar.gz |
- Fixed bug #54395 (Phar::mount() crashes when calling with wrong parameters)
Diffstat (limited to 'ext/phar/tests/bug54395.phpt')
-rw-r--r-- | ext/phar/tests/bug54395.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/phar/tests/bug54395.phpt b/ext/phar/tests/bug54395.phpt new file mode 100644 index 0000000000..091ed326a8 --- /dev/null +++ b/ext/phar/tests/bug54395.phpt @@ -0,0 +1,16 @@ +--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()); +} + +?> +--EXPECTF-- +string(25) "Mounting of 1 to 1 failed" |