Skip to content

Commit 8106688

Browse files
jellynikic
authored andcommitted
openssl: add basic openssl_get_cert_locations test
Add a simple test for openssl_get_cert_locations, verifying the returned array structure.
1 parent a595b0f commit 8106688

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
--TEST--
2+
openssl_get_cert_locations() tests
3+
--SKIPIF--
4+
<?php if (!extension_loaded("openssl")) print "skip"; ?>
5+
--FILE--
6+
<?php
7+
// openssl locations differ per distro.
8+
var_dump(openssl_get_cert_locations());
9+
?>
10+
--EXPECTF--
11+
array(8) {
12+
["default_cert_file"]=>
13+
string(%d) "%s"
14+
["default_cert_file_env"]=>
15+
string(%d) "%s"
16+
["default_cert_dir"]=>
17+
string(%d) "%s"
18+
["default_cert_dir_env"]=>
19+
string(%d) "%s"
20+
["default_private_dir"]=>
21+
string(%d) "%s"
22+
["default_default_cert_area"]=>
23+
string(%d) "%s"
24+
["ini_cafile"]=>
25+
string(%d) ""
26+
["ini_capath"]=>
27+
string(%d) ""
28+
}

0 commit comments

Comments
 (0)