Skip to content

Commit

Permalink
Set test classes as final (required for 4.4 and up)
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 13, 2024
1 parent 8ac4cb2 commit 0ceee22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/moodlecheck_rules_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @copyright 2018 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class moodlecheck_rules_test extends \advanced_testcase {
final class moodlecheck_rules_test extends \advanced_testcase {
public function setUp(): void {
global $CFG;
parent::setUp();
Expand Down
3 changes: 1 addition & 2 deletions tests/phpdocs_basic_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
* @copyright 2023 Andrew Lyons <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class phpdocs_basic_test extends \advanced_testcase {

final class phpdocs_basic_test extends \advanced_testcase {
public static function setUpBeforeClass(): void {
global $CFG;
require_once($CFG->dirroot . '/local/moodlecheck/locallib.php');
Expand Down

0 comments on commit 0ceee22

Please sign in to comment.