Search moodle.org's
Developer Documentation

See Release Notes

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

(no description)

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

Defines 1 class

mysqli_native_moodle_database_test:: (5 methods):
  setUp()
  new_connection()
  connection_status()
  test_client_compression()
  test_ssl_connection()


Class: mysqli_native_moodle_database_test  - X-Ref

Test specific features of the MySql dml.

setUp()   X-Ref
Set up.


new_connection(?bool $compress = false, ?string $ssl = null)   X-Ref
SSL connection helper.

param: bool|null $compress
param: string|null $ssl
return: mysqli

connection_status($mysqli)   X-Ref
Test client compression helper.

param: mysqli $mysqli
return: array

test_client_compression()   X-Ref
Test client compression.

return: void

test_ssl_connection()   X-Ref
Test SSL connection.

Well as much as we can, mysqli does not reliably report connect errors.
return: void