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]

(no description)

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

Defines 1 class


Class: xhprof_test  - X-Ref

Unit tests for the xhprof class.

setUpBeforeClass()   X-Ref
No description

profiling_string_matches_provider()   X-Ref
Data provider for string matches

return: array

test_profiling_string_matches($string, $patterns, $expected)   X-Ref
Test the matching syntax

param: string $string
param: string $patterns
param: bool   $expected

run_data_provider()   X-Ref
Data provider for both the topological sort and the data reduction tests.

return: array

test_xhprof_topo_sort(array $rundata, array $expectations)   X-Ref
Test that topologically sorting the run data works as expected

param: array $rundata The run data to be sorted.
param: array $expectations The expected results.

test_reduce_run_data(array $rundata, array $expectations)   X-Ref
Test that reducing the data complexity works as expected

param: array $rundata The run data to be reduced.
param: array $expectations The expected results.