mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-32323 prevent modification of our heavily modified runBare() methods
This should help with compatibility of future PHPUnit and it also allows us to improve test reset without breaking existing moodle test cases.
This commit is contained in:
parent
920f4efe51
commit
39e2e9c41f
@ -1001,7 +1001,7 @@ class basic_testcase extends PHPUnit_Framework_TestCase {
|
||||
* Runs the bare test sequence and log any changes in global state or database.
|
||||
* @return void
|
||||
*/
|
||||
public function runBare() {
|
||||
final public function runBare() {
|
||||
global $DB;
|
||||
|
||||
try {
|
||||
@ -1058,7 +1058,7 @@ class advanced_testcase extends PHPUnit_Framework_TestCase {
|
||||
* Runs the bare test sequence.
|
||||
* @return void
|
||||
*/
|
||||
public function runBare() {
|
||||
final public function runBare() {
|
||||
global $DB;
|
||||
|
||||
if (phpunit_util::$lastdbwrites != $DB->perf_get_writes()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user