From: Greg Beaver Date: Tue, 10 Jun 2008 19:23:09 +0000 (+0000) Subject: new tests (forgot to add these earlier) X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a62db4e6c44ceddd4d43b7c235519898fba6f6f;p=php new tests (forgot to add these earlier) --- diff --git a/ext/phar/tests/phar_get_supported_signatures_001a.phpt b/ext/phar/tests/phar_get_supported_signatures_001a.phpt new file mode 100644 index 0000000000..f267b48141 --- /dev/null +++ b/ext/phar/tests/phar_get_supported_signatures_001a.phpt @@ -0,0 +1,25 @@ +--TEST-- +Phar::getSupportedSignatures() +--SKIPIF-- + + + +--INI-- +phar.require_hash=0 +phar.readonly=0 +--FILE-- + +===DONE=== +?> +--EXPECT-- +array(3) { + [0]=> + string(3) "MD5" + [1]=> + string(5) "SHA-1" + [2]=> + string(7) "OpenSSL" +} +===DONE=== diff --git a/ext/phar/tests/phar_get_supported_signatures_002a.phpt b/ext/phar/tests/phar_get_supported_signatures_002a.phpt new file mode 100644 index 0000000000..ab2b0b0a98 --- /dev/null +++ b/ext/phar/tests/phar_get_supported_signatures_002a.phpt @@ -0,0 +1,29 @@ +--TEST-- +Phar::getSupportedSignatures() +--SKIPIF-- + + + +--INI-- +phar.require_hash=0 +phar.readonly=0 +--FILE-- + +===DONE=== +?> +--EXPECT-- +array(5) { + [0]=> + string(3) "MD5" + [1]=> + string(5) "SHA-1" + [2]=> + string(7) "SHA-256" + [3]=> + string(7) "SHA-512" + [4]=> + string(7) "OpenSSL" +} +===DONE===