public function setUp() { wfDebug(__METHOD__); $db = wfGetDB(DB_MASTER); $type = $db->getType(); $prefix = $type === 'oracle' ? MediaWikiTestCase::ORA_DB_PREFIX : MediaWikiTestCase::DB_PREFIX; MediaWikiTestCase::setupTestDB($db, $prefix); $teardown = $this->ptRunner->setDatabase($db); $teardown = $this->ptRunner->setupUploads($teardown); $this->ptTeardownScope = $teardown; }