Annotation of embedaddon/php/ext/phar/tests/phar_get_supported_signatures_002.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar::getSupportedSignatures()
3: --SKIPIF--
4: <?php
5: if (!extension_loaded("phar")) die("skip");
6: if (!extension_loaded("hash")) die("skip extension hash required");
7: $arr = Phar::getSupportedSignatures();
8: if (in_array("OpenSSL", $arr)) die("skip openssl support enabled");
9: if (!in_array('SHA-256', $arr)) die("skip hash extension loaded shared");
10: ?>
11: --INI--
12: phar.require_hash=0
13: phar.readonly=0
14: --FILE--
15: <?php
16: var_dump(Phar::getSupportedSignatures());
17: ?>
18: ===DONE===
19: ?>
20: --EXPECT--
21: array(4) {
22: [0]=>
23: string(3) "MD5"
24: [1]=>
25: string(5) "SHA-1"
26: [2]=>
27: string(7) "SHA-256"
28: [3]=>
29: string(7) "SHA-512"
30: }
31: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>