Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401]

(no description)

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

Defines 1 class


Class: http_client_test  - X-Ref

Tests for the http_client class.

test_client_get_request()   X-Ref
Verify the http_client delegates to curl during a "GET" request.


test_client_post_request()   X-Ref
Verify the http_client delegates to curl during a "POST" request.


test_request_unsupported_method(string $httpmethod)   X-Ref
Test a few of the unsupported HTTP methods.

param: string $httpmethod the http method.

unsupported_methods_provider()   X-Ref
Data provider for testing unsupported http methods.

return: array the test case data.