summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <marcosptf@yahoo.com.br>2015-10-29 12:05:54 -0200
committerJakub Zelenka <bukka@php.net>2015-10-29 19:06:40 +0000
commit06c6b51e7d680defdb1d2e718af7289b8b5fa600 (patch)
tree38ce73394081c1646585a1d11b6e679f0710222e
parent6d51b7b2e3468601acdaaf9041c9131b5aa47f98 (diff)
downloadphp-git-06c6b51e7d680defdb1d2e718af7289b8b5fa600.tar.gz
new tests to openssl module, don't covered yet.
-rw-r--r--ext/openssl/tests/openssl_get_cipher_methods.phpt16
-rw-r--r--ext/openssl/tests/openssl_get_md_methods.phpt16
2 files changed, 32 insertions, 0 deletions
diff --git a/ext/openssl/tests/openssl_get_cipher_methods.phpt b/ext/openssl/tests/openssl_get_cipher_methods.phpt
new file mode 100644
index 0000000000..90c7e17c73
--- /dev/null
+++ b/ext/openssl/tests/openssl_get_cipher_methods.phpt
@@ -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
index 0000000000..28f8abfe89
--- /dev/null
+++ b/ext/openssl/tests/openssl_get_md_methods.phpt
@@ -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