See Release Notes
Long Term Support Release
Differences Between: [Versions 310 and 401] [Versions 39 and 401]
(no description)
File Size: | 296 lines (15 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
curl_security_helper_test:: (9 methods):
test_curl_security_helper_url_is_blocked()
curl_security_url_data_provider()
test_curl_security_helper_is_enabled()
curl_security_settings_data_provider()
test_curl_security_helper_host_is_blocked()
curl_security_host_data_provider()
test_curl_security_helper_port_is_blocked()
curl_security_port_data_provider()
test_curl_security_helper_get_blocked_url_string()
Class: curl_security_helper_test - X-Ref
cURL security test suite.test_curl_security_helper_url_is_blocked($dns, $url, $blockedhosts, $allowedports, $expected) X-Ref |
Test for \core\files\curl_security_helper::url_is_blocked(). param: array $dns a mapping between hosts and IPs to be used instead of a real DNS lookup. The values must be arrays. param: string $url the url to validate. param: string $blockedhosts the list of blocked hosts. param: string $allowedports the list of allowed ports. param: bool $expected the expected result. |
curl_security_url_data_provider() X-Ref |
No description |
test_curl_security_helper_is_enabled($blockedhosts, $allowedports, $expected) X-Ref |
Test for \core\files\curl_security_helper->is_enabled(). param: string $blockedhosts the list of blocked hosts. param: string $allowedports the list of allowed ports. param: bool $expected the expected result. |
curl_security_settings_data_provider() X-Ref |
Data provider for test_curl_security_helper_is_enabled(). return: array |
test_curl_security_helper_host_is_blocked($host, $blockedhosts, $expected) X-Ref |
Test for \core\files\curl_security_helper::host_is_blocked(). param: string $host the host to validate. param: string $blockedhosts the list of blocked hosts. param: bool $expected the expected result. |
curl_security_host_data_provider() X-Ref |
Data provider for test_curl_security_helper_host_is_blocked(). return: array |
test_curl_security_helper_port_is_blocked($port, $allowedports, $expected) X-Ref |
Test for \core\files\curl_security_helper->port_is_blocked(). param: int|string $port the port to validate. param: string $allowedports the list of allowed ports. param: bool $expected the expected result. |
curl_security_port_data_provider() X-Ref |
Data provider for test_curl_security_helper_port_is_blocked(). return: array |
test_curl_security_helper_get_blocked_url_string() X-Ref |
Test for \core\files\curl_security_helper::get_blocked_url_string(). |