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: 169 lines (6 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file
 communication/provider/matrix/tests/fixtures/mocked_matrix_client.php

Defines 7 functions


Functions that are not part of a class:

setUpBeforeClass()   X-Ref
A trait with shared tooling for handling matrix_client tests.


setUp()   X-Ref
No description

tearDown()   X-Ref
No description

get_mocked_instance_for_version(string $version,array &$historycontainer = [],?MockHandler $mock = null,)   X-Ref
Get a mocked instance for a specific Matrix API version,

param: string $version
param: array $historycontainer An array which will be filled with history for the mocked client.
param: MockHandler|null $mock A MockHandler object that can be appended to
return: matrix_client

get_mocked_version_response(array $versions = null,array $unstablefeatures = null,)   X-Ref
Get a mocked response for the /versions well-known URI.

param: array|null $versions
param: array|null $unstablefeatures
return: Response

get_current_versions()   X-Ref
A helper to get the current versions returned by synapse.

return: array

get_current_unstable_features()   X-Ref
A helper to get the current unstable features returned by synapse.

return: array