Public Member Functions | |
| tearDown () | |
| count () | |
| toString () | |
Static Public Member Functions | |
| static | suite () |
Static Public Attributes | |
| static | $parser |
| static | $iter |
Private Member Functions | |
| teardownUploadDir ($dir) | |
| Remove the dummy uploads directory. | |
| setupUploadDir () | |
| Create a dummy uploads directory which will contain a couple of files in order to pass existence tests. | |
Static Private Member Functions | |
| static | deleteFiles ($files) |
| Delete the specified files, if they exist. | |
| static | deleteDirs ($dirs) |
| Delete the specified directories, if they exist. | |
Private Attributes | |
| $db | |
| $uploadDir | |
| $keepUploads | |
Static Private Attributes | |
| static | $count |
Definition at line 24 of file MediaWikiParserTest.php.
| MediaWikiParserTestSuite::count | ( | ) |
Definition at line 102 of file MediaWikiParserTest.php.
| static MediaWikiParserTestSuite::deleteDirs | ( | $ | dirs | ) | [static, private] |
Delete the specified directories, if they exist.
Must be empty.
| array | $dirs full paths to directories to delete. |
Definition at line 167 of file MediaWikiParserTest.php.
References $dirs.
Referenced by teardownUploadDir().
| static MediaWikiParserTestSuite::deleteFiles | ( | $ | files | ) | [static, private] |
Delete the specified files, if they exist.
| array | $files full paths to files to delete. |
Definition at line 156 of file MediaWikiParserTest.php.
References $files.
Referenced by teardownUploadDir().
| MediaWikiParserTestSuite::setupUploadDir | ( | ) | [private] |
Create a dummy uploads directory which will contain a couple of files in order to pass existence tests.
Definition at line 180 of file MediaWikiParserTest.php.
References wfDebug(), wfMkdirParents(), and wfTempDir().
| static MediaWikiParserTestSuite::suite | ( | ) | [static] |
Definition at line 30 of file MediaWikiParserTest.php.
References $i, $messageMemc, $parserMemc, $suite, $test, $wgArticlePath, $wgContLang, $wgDeferredUpdateList, $wgEnableParserCache, $wgLang, $wgLocalFileRepo, $wgMemc, $wgMessageCache, $wgMsgCacheExpiry, $wgNamespaceAliases, $wgNamespaceProtection, $wgNamespacesWithSubpages, $wgOut, $wgParser, $wgParserConf, $wgRequest, $wgScript, $wgScriptPath, $wgStyleDirectory, $wgStylePath, $wgStyleSheetPath, $wgThumbnailScriptPath, $wgUseDatabaseMessages, $wgUser, wfGetMainCache(), wfGetMessageCacheStorage(), wfGetParserCacheStorage(), and wfWikiID().
| MediaWikiParserTestSuite::tearDown | ( | ) |
| MediaWikiParserTestSuite::teardownUploadDir | ( | $ | dir | ) | [private] |
Remove the dummy uploads directory.
Definition at line 115 of file MediaWikiParserTest.php.
References deleteDirs(), and deleteFiles().
Referenced by tearDown().
| MediaWikiParserTestSuite::toString | ( | ) |
Definition at line 104 of file MediaWikiParserTest.php.
MediaWikiParserTestSuite::$count [static, private] |
Definition at line 26 of file MediaWikiParserTest.php.
MediaWikiParserTestSuite::$db [private] |
Definition at line 109 of file MediaWikiParserTest.php.
MediaWikiParserTestSuite::$iter [static] |
MediaWikiParserTestSuite::$keepUploads [private] |
Definition at line 111 of file MediaWikiParserTest.php.
MediaWikiParserTestSuite::$parser [static] |
MediaWikiParserTestSuite::$uploadDir [private] |
Definition at line 110 of file MediaWikiParserTest.php.
1.5.9