diff options
author | Greg Beaver <cellog@php.net> | 2009-05-24 18:47:54 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2009-05-24 18:47:54 +0000 |
commit | 3c48633a8fe2b7b24a8e77226e89f48ae43e4f0c (patch) | |
tree | ae7e071aca21b6dba0acdc09a57f6f6c48619231 | |
parent | 01d1074f514e9889fe9182ba4655851a58273e8d (diff) | |
download | php-git-3c48633a8fe2b7b24a8e77226e89f48ae43e4f0c.tar.gz |
add missing test
-rw-r--r-- | ext/phar/tests/tar/tar_nohash.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/phar/tests/tar/tar_nohash.phpt b/ext/phar/tests/tar/tar_nohash.phpt new file mode 100644 index 0000000000..dae2bb92a8 --- /dev/null +++ b/ext/phar/tests/tar/tar_nohash.phpt @@ -0,0 +1,23 @@ +--TEST-- +Phar: tar archive, require_hash=1, should not error out +--SKIPIF-- +<?php if (!extension_loaded('phar')) die('skip'); ?> +<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?> +<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?> +--INI-- +phar.readonly=1 +phar.require_hash=1 +--FILE-- +<?php +try { + $phar = new PharData(dirname(__FILE__) . '/files/Net_URL-1.0.15.tgz'); + var_dump($phar->getStub()); +} catch (Exception $e) { + echo $e->getMessage()."\n"; +} + +?> +===DONE=== +--EXPECT-- +string(0) "" +===DONE=== |