com php-src: openssl: add basic openssl_get_cert_location s test: ext/openssl/tests/openssl_get_cert_location s_basic.phpt

From: Date: Sat, 19 Aug 2017 13:31:27 +0000
Subject: com php-src: openssl: add basic openssl_get_cert_location s test: ext/openssl/tests/openssl_get_cert_location s_basic.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99109@lists.php.net to get a copy of this message
Commit: 8106688575fbbffd3cb6b5d3bc999ac8918799dc Author: Jelle van der Waa <jelle@vdwaa.nl> Sat, 12 Aug 2017 01:20:43 +0200 Committer: Nikita Popov <nikita.ppv@gmail.com> Sat, 19 Aug 2017 15:31:27 +0200 Parents: a595b0f75bf8bc0d3da8ca5cb03f8b1a694d26b2 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8106688575fbbffd3cb6b5d3bc999ac8918799dc Log: openssl: add basic openssl_get_cert_locations test Add a simple test for openssl_get_cert_locations, verifying the returned array structure. Changed paths: A ext/openssl/tests/openssl_get_cert_locations_basic.phpt Diff: diff --git a/ext/openssl/tests/openssl_get_cert_locations_basic.phpt b/ext/openssl/tests/openssl_get_cert_locations_basic.phpt new file mode 100644 index 0000000..b3992d0 --- /dev/null +++ b/ext/openssl/tests/openssl_get_cert_locations_basic.phpt @@ -0,0 +1,28 @@ +--TEST-- +openssl_get_cert_locations() tests +--SKIPIF-- +<?php if (!extension_loaded("openssl")) print "skip"; ?> +--FILE-- +<?php +// openssl locations differ per distro. +var_dump(openssl_get_cert_locations()); +?> +--EXPECTF-- +array(8) { + ["default_cert_file"]=> + string(%d) "%s" + ["default_cert_file_env"]=> + string(%d) "%s" + ["default_cert_dir"]=> + string(%d) "%s" + ["default_cert_dir_env"]=> + string(%d) "%s" + ["default_private_dir"]=> + string(%d) "%s" + ["default_default_cert_area"]=> + string(%d) "%s" + ["ini_cafile"]=> + string(%d) "" + ["ini_capath"]=> + string(%d) "" +}

« previous php.cvs (#99109) next »