From 025defad3f24525501e91c5f41ce1a572548f98e Mon Sep 17 00:00:00 2001 From: X! Date: Fri, 31 Dec 2010 20:47:48 +0000 Subject: [PATCH] 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. --- tests/phpunit/MediaWikiTestCase.php | 3 +++ 1 file changed, 3 insertions(+) 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 ) { -- 2.20.1