]> granicus.if.org Git - php/commitdiff
new test for no signature
authorGreg Beaver <cellog@php.net>
Sun, 25 Nov 2007 04:52:49 +0000 (04:52 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 25 Nov 2007 04:52:49 +0000 (04:52 +0000)
ext/phar/tests/phar_oo_nosig.phpt [new file with mode: 0644]

diff --git a/ext/phar/tests/phar_oo_nosig.phpt b/ext/phar/tests/phar_oo_nosig.phpt
new file mode 100644 (file)
index 0000000..7049800
--- /dev/null
@@ -0,0 +1,24 @@
+--TEST--
+Phar::getSignature() no signature
+--SKIPIF--
+<?php if (!extension_loaded("phar")) print "skip"; ?>
+<?php if (!extension_loaded("spl")) print "skip SPL not available"; ?>
+--INI--
+phar.require_hash=0
+--FILE--
+<?php
+
+require_once 'phar_oo_test.inc';
+
+$phar = new Phar($fname);
+var_dump($phar->getSignature());
+?>
+===DONE===
+--CLEAN--
+<?php 
+unlink(dirname(__FILE__) . '/phar_oo_test.phar.php');
+__halt_compiler();
+?>
+--EXPECT--
+bool(false)
+===DONE===