diff options
author | root <marcosptf@yahoo.com.br> | 2015-10-29 12:05:54 -0200 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2015-10-29 19:06:40 +0000 |
commit | 06c6b51e7d680defdb1d2e718af7289b8b5fa600 (patch) | |
tree | 38ce73394081c1646585a1d11b6e679f0710222e /ext/openssl | |
parent | 6d51b7b2e3468601acdaaf9041c9131b5aa47f98 (diff) | |
download | php-git-06c6b51e7d680defdb1d2e718af7289b8b5fa600.tar.gz |
new tests to openssl module, don't covered yet.
Diffstat (limited to 'ext/openssl')
-rw-r--r-- | ext/openssl/tests/openssl_get_cipher_methods.phpt | 16 | ||||
-rw-r--r-- | ext/openssl/tests/openssl_get_md_methods.phpt | 16 |
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 |