MediaWiki
REL1_19
|
Public Member Functions | |
setUp () | |
tearDown () | |
Static Public Member Functions | |
static | addTables (&$tables) |
static | suite () |
Public Attributes | |
$savedGlobals = array() | |
Private Member Functions | |
setupUploadDir () | |
Create a dummy uploads directory which will contain a couple of files in order to pass existence tests. | |
teardownUploadDir ($dir) | |
Remove the dummy uploads directory. | |
Static Private Member Functions | |
static | deleteDirs ($dirs) |
Delete the specified directories, if they exist. | |
static | deleteFiles ($files) |
Delete the specified files, if they exist. | |
Private Attributes | |
$keepUploads | |
$uploadDir |
Definition at line 5 of file UploadFromUrlTestSuite.php.
static UploadFromUrlTestSuite::addTables | ( | &$ | tables | ) | [static] |
Definition at line 8 of file UploadFromUrlTestSuite.php.
static UploadFromUrlTestSuite::deleteDirs | ( | $ | dirs | ) | [static, private] |
Delete the specified directories, if they exist.
Must be empty.
$dirs | Array: full paths to directories to delete. |
Definition at line 154 of file UploadFromUrlTestSuite.php.
References $dir.
Referenced by teardownUploadDir().
static UploadFromUrlTestSuite::deleteFiles | ( | $ | files | ) | [static, private] |
Delete the specified files, if they exist.
$files | Array: full paths to files to delete. |
Definition at line 141 of file UploadFromUrlTestSuite.php.
Referenced by teardownUploadDir().
Definition at line 18 of file UploadFromUrlTestSuite.php.
References $IP, $messageMemc, $parserMemc, $wgEnableParserCache, $wgLang, $wgMemc, $wgNamespaceAliases, $wgNamespaceProtection, $wgOut, $wgParser, $wgParserConf, $wgStyleDirectory, $wgUser, DeferredUpdates\clearPendingUpdates(), FileBackendGroup\destroySingleton(), RepoGroup\destroySingleton(), RequestContext\getLanguage(), wfGetMainCache(), wfGetMessageCacheStorage(), wfGetParserCacheStorage(), and wfTempDir().
UploadFromUrlTestSuite::setupUploadDir | ( | ) | [private] |
Create a dummy uploads directory which will contain a couple of files in order to pass existence tests.
Definition at line 168 of file UploadFromUrlTestSuite.php.
References $dir, $IP, wfDebug(), wfMkdirParents(), and wfTempDir().
static UploadFromUrlTestSuite::suite | ( | ) | [static] |
Definition at line 197 of file UploadFromUrlTestSuite.php.
References $suite.
Definition at line 82 of file UploadFromUrlTestSuite.php.
References FileBackendGroup\destroySingleton(), RepoGroup\destroySingleton(), and teardownUploadDir().
UploadFromUrlTestSuite::teardownUploadDir | ( | $ | dir | ) | [private] |
Remove the dummy uploads directory.
Definition at line 99 of file UploadFromUrlTestSuite.php.
References deleteDirs(), and deleteFiles().
Referenced by tearDown().
UploadFromUrlTestSuite::$keepUploads [private] |
Definition at line 94 of file UploadFromUrlTestSuite.php.
UploadFromUrlTestSuite::$savedGlobals = array() |
Definition at line 6 of file UploadFromUrlTestSuite.php.
UploadFromUrlTestSuite::$uploadDir [private] |
Definition at line 93 of file UploadFromUrlTestSuite.php.