From 1b2c9970a69596d4f7d459c8bd5c80649b517c77 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 18 Mar 2013 16:09:18 +0100 Subject: [PATCH] acessor for MediaWikiTestCase::$useTemporaryTables useTemporaryTables is marked private to prevent childs from overriding the value which would cause a lot of madness whenever it forgot to reset its status. But that in turns prevents a child class from figuring out whether we use temporary tables or not. The ActiveAbstract extension test suite has such a requirement and hence need a proper accessor. MediaWikiTestCase::usesTemporaryTables() is a public accessor to for the private property MediaWikiTestCase::$useTemporaryTables. Change-Id: I8016c49116a187d7523cc0d6190514f8a513eafb --- tests/phpunit/MediaWikiTestCase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index 51fbff1190..7e6e0ab8a3 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -123,6 +123,10 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { } } + function usesTemporaryTables() { + return self::$useTemporaryTables; + } + /** * obtains a new temporary file name * -- 2.20.1