Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion verify_phpunit_xml/create_phpunit_xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@
// Now, let's invoke phpunit utils to generate the phpunit.xml file

// We need to load a few things manually.
require_once("{$dirroot}/lib/phpunit/classes/util.php");
if (!class_exists(\phpunit_util::class)) {
// From Moodle 5.2 we can autoload the phpunit_util class.
// Including the old location will throw debugging notices. In this case, because we do not load the full Moodle
// stack, this excepts.
require_once("{$dirroot}/lib/phpunit/classes/util.php");
}

if (!class_exists(\core\output\core_renderer::class)) {
// From Moodle 4.5 we start to autoload the output components and including outputcomponents.php will throw an exception.
Expand Down
Loading