From 39e2e9c41fe2f4dbfe00fcd910263aac19271cc1 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Tue, 10 Apr 2012 13:58:47 +0200 Subject: [PATCH] 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. --- lib/phpunit/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/phpunit/lib.php b/lib/phpunit/lib.php index fa99d49719d..1c59fc359bf 100644 --- a/lib/phpunit/lib.php +++ b/lib/phpunit/lib.php @@ -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()) {