php-src/ext/openssl/tests/openssl_get_cert_locations_basic.phpt
Jelle van der Waa 8106688575 openssl: add basic openssl_get_cert_locations test
Add a simple test for openssl_get_cert_locations, verifying the returned
array structure.
2017-08-19 15:31:27 +02:00

29 lines
585 B
PHP

--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) ""
}