MDL-83468 phpunit: Add back getName to testcase

In some situations we use the name of the test so we must keep
`getName()` for backwards compatibility.
This commit is contained in:
Andrew Nicols
2025-01-20 16:47:55 +01:00
committed by Sara Arjona
parent d6aabc8b2e
commit bd01a91ae0
+10
View File
@@ -50,4 +50,14 @@ abstract class basic_testcase extends base_testcase {
phpunit_util::reset_all_data(true);
}
/**
* Get the name of the test.
*
* Replaces the original PHPUnit method.
* @return string
*/
final public function getName(): string {
return $this->name();
}
}