]> granicus.if.org Git - php/commitdiff
new tests to openssl module, don't covered yet.
authorroot <marcosptf@yahoo.com.br>
Thu, 29 Oct 2015 14:05:54 +0000 (12:05 -0200)
committerJakub Zelenka <bukka@php.net>
Thu, 29 Oct 2015 19:06:40 +0000 (19:06 +0000)
ext/openssl/tests/openssl_get_cipher_methods.phpt [new file with mode: 0644]
ext/openssl/tests/openssl_get_md_methods.phpt [new file with mode: 0644]

diff --git a/ext/openssl/tests/openssl_get_cipher_methods.phpt b/ext/openssl/tests/openssl_get_cipher_methods.phpt
new file mode 100644 (file)
index 0000000..90c7e17
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+array openssl_get_cipher_methods ([ bool $aliases = false ] );
+--CREDITS--
+marcosptf - <marcosptf@yahoo.com.br>
+--SKIPIF--
+<?php
+if (!extension_loaded("openssl")) print "skip";
+?>
+--FILE--
+<?php
+var_dump(is_array(openssl_get_cipher_methods(true)));
+var_dump(is_array(openssl_get_cipher_methods(false)));
+?>
+--EXPECT--
+bool(true)
+bool(true)
\ No newline at end of file
diff --git a/ext/openssl/tests/openssl_get_md_methods.phpt b/ext/openssl/tests/openssl_get_md_methods.phpt
new file mode 100644 (file)
index 0000000..28f8abf
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+array openssl_get_md_methods ([ bool $aliases = false ] );
+--CREDITS--
+marcosptf - <marcosptf@yahoo.com.br>
+--SKIPIF--
+<?php
+if (!extension_loaded("openssl")) print "skip";
+?>
+--FILE--
+<?php
+var_dump(is_array(openssl_get_md_methods(true)));
+var_dump(is_array(openssl_get_md_methods(false)));
+?>
+--EXPECT--
+bool(true)
+bool(true)
\ No newline at end of file