MDL-83468 phpunit: Fix various tests after phpunit 10

This commit is contained in:
Andrew Nicols 2024-10-16 11:58:29 +08:00 committed by Sara Arjona
parent b95a8c6ecc
commit bc75ef8bbc
No known key found for this signature in database
51 changed files with 717 additions and 659 deletions

View file

@ -314,7 +314,7 @@ class phpunit_util extends testing_util {
if ($warnings) {
$warnings = implode("\n", $warnings);
trigger_error($warnings, E_USER_WARNING);
throw new \core_phpunit\exception\test_exception($warnings);
}
}