mirror of
https://github.com/php/php-src.git
synced 2025-01-13 22:44:36 +08:00
8106688575
Add a simple test for openssl_get_cert_locations, verifying the returned array structure.
29 lines
585 B
PHP
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) ""
|
|
}
|