Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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] [134 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] [1007 lines]  Utility class.