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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user