Annotation of embedaddon/php/ext/phar/tests/phar_get_supported_signatures_001.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 conflicts");
7: $arr = Phar::getSupportedSignatures();
8: if (in_array("OpenSSL", $arr)) die("skip openssl support enabled");
9: ?>
10: --INI--
11: phar.require_hash=0
12: phar.readonly=0
13: --FILE--
14: <?php
15: var_dump(Phar::getSupportedSignatures());
16: ?>
17: ===DONE===
18: ?>
19: --EXPECT--
20: array(2) {
21: [0]=>
22: string(3) "MD5"
23: [1]=>
24: string(5) "SHA-1"
25: }
26: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>