Skip to content

Commit 6b3562c

Browse files
author
Greg Beaver
committed
new test for no signature
1 parent 634edbe commit 6b3562c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

ext/phar/tests/phar_oo_nosig.phpt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--TEST--
2+
Phar::getSignature() no signature
3+
--SKIPIF--
4+
<?php if (!extension_loaded("phar")) print "skip"; ?>
5+
<?php if (!extension_loaded("spl")) print "skip SPL not available"; ?>
6+
--INI--
7+
phar.require_hash=0
8+
--FILE--
9+
<?php
10+
11+
require_once 'phar_oo_test.inc';
12+
13+
$phar = new Phar($fname);
14+
var_dump($phar->getSignature());
15+
?>
16+
===DONE===
17+
--CLEAN--
18+
<?php
19+
unlink(dirname(__FILE__) . '/phar_oo_test.phar.php');
20+
__halt_compiler();
21+
?>
22+
--EXPECT--
23+
bool(false)
24+
===DONE===

0 commit comments

Comments
 (0)