From 89e859d09248de6b1b9b9cdd652cb72c9f7ff098 Mon Sep 17 00:00:00 2001 From: xXx-caillou-xXx Date: Wed, 29 Aug 2018 18:09:51 +0200 Subject: Change how we're validating certificates --- .../disabled_function_ensure_server_valid_certs.phpt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/tests/disabled_function_ensure_server_valid_certs.phpt (limited to 'src/tests/disabled_function_ensure_server_valid_certs.phpt') diff --git a/src/tests/disabled_function_ensure_server_valid_certs.phpt b/src/tests/disabled_function_ensure_server_valid_certs.phpt new file mode 100644 index 0000000..01a4406 --- /dev/null +++ b/src/tests/disabled_function_ensure_server_valid_certs.phpt @@ -0,0 +1,18 @@ +--TEST-- +Disable functions - Ensure that server certificates validation can't be disabled +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/disabled_function_curl_verify_certs.ini +--FILE-- + +--EXPECTF-- +Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'curl_setopt', because its argument '$option' content (81) matched the rule 'Please don't turn CURLOPT_SSL_VERIFYHOST off.' in %s/tests/disabled_function_ensure_server_valid_certs.php on line %d -- cgit v1.3