From: Antoine Musso Date: Mon, 18 Mar 2013 15:09:18 +0000 (+0100) Subject: acessor for MediaWikiTestCase::$useTemporaryTables X-Git-Tag: 1.31.0-rc.0~20300 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=1b2c9970a69596d4f7d459c8bd5c80649b517c77;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 *