Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

(no description)

File Size: 156 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: upgrade_util_test  - X-Ref

Upgrade utility class tests.

test_validate_php_curl_tls($curlinfo, $zts, $expected)   X-Ref
Test PHP/cURL validation.

param: array $curlinfo server curl_version array
param: int   $zts      0 or 1 as defined by PHP_ZTS
param: bool  $expected expected result

validate_php_curl_tls_testcases()   X-Ref
Test cases for validate_php_curl_tls test.


test_can_use_tls12($sslversion, $uname, $expected)   X-Ref
Test various combinations of SSL/TLS libraries.

param: string $sslversion the ssl_version string.
param: string|null $uname uname string (or null if not relevant)
param: bool $expected expected result

can_use_tls12_testcases()   X-Ref
Test cases for the can_use_tls12 test.
The returned data format is:
[(string) ssl_version, (string|null) uname (null if not relevant), (bool) expectation ]

return: array of testcases