From: X! Date: Fri, 31 Dec 2010 20:47:48 +0000 (+0000) Subject: Solved problem with SQLite: Globals were getting stored, and when a PDO reference... X-Git-Tag: 1.31.0-rc.0~32949 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=025defad3f24525501e91c5f41ce1a572548f98e;p=lhc%2Fweb%2Fwiklou.git Solved problem with SQLite: Globals were getting stored, and when a PDO reference is transferred, as is the case with SQLite, it serializes the globals. --- diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index 25767be4d9..1bdcf1c8d0 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -17,6 +17,9 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { $this->data = $data; $this->dataName = $dataName; + + $this->backupGlobals = false; + $this->backupStaticAttributes = false; } function run( PHPUnit_Framework_TestResult $result = NULL ) {