Skip to content

Commit 0c435b7

Browse files
committed
Add regression test for the location of the certs file
1 parent 72bb6f0 commit 0c435b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_2_extensions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
// Check that the default certificate file exists
8686
// https://github.com/brefphp/aws-lambda-layers/issues/53
8787
'curl-openssl-certificates' => file_exists(openssl_get_cert_locations()['default_cert_file']),
88+
// Check its location has not changed (would be a breaking change)
89+
'curl-openssl-certificates-location' => openssl_get_cert_locations()['default_cert_file'] === '/opt/bref/ssl/cert.pem',
8890
// Make sure we are using curl with our compiled libssh
8991
'curl-libssh' => version_compare(str_replace('libssh2/', '', curl_version()['libssh_version']), '1.10.0', '>='),
9092
'json' => function_exists('json_encode'),

0 commit comments

Comments
 (0)