Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.
/lib/phpunit/classes/
FolderUp one level  
Fileadvanced_testcase.php                          [source] [745 lines]   Advanced test case.
Filebase_testcase.php                              [source] [573 lines]   Base test case class.
Filebasic_testcase.php                             [source] [86 lines]    Basic test case.
Fileconstraint_object_is_equal_with_exceptions.php [source] [110 lines]   Constraint that checks a simple object with an isEqual constrain, allowing for exceptions to be made for some fields.
Filecoverage_info.php                              [source] [126 lines]   Coverage information for PHPUnit.
Filedatabase_driver_testcase.php                   [source] [227 lines]   Database driver test case.
Fileevent_mock.php                                 [source] [77 lines]    Event mock.
Fileevent_sink.php                                 [source] [87 lines]    Event sink.
Filemessage_sink.php                               [source] [85 lines]    Message sink.
Filephpmailer_sink.php                             [source] [87 lines]    phpmailer message sink.
Filephpunit_dataset.php                            [source] [371 lines]   Handle simple PHP/CSV/XML datasets to be use with ease by unit tests. This is a very minimal class, able to load data from PHP arrays and CSV/XML files, optionally uploading them to database.
Filerestore_date_testcase.php                      [source] [163 lines]   Restore dates test case.
Fileutil.php                                       [source] [998 lines]   Utility class.