MediaWiki
REL1_22
|
Static Public Member Functions | |
static | addTables (&$tables) |
static | suite () |
Public Attributes | |
$savedGlobals = array() | |
Protected Member Functions | |
setUp () | |
tearDown () | |
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 155 of file UploadFromUrlTestSuite.php.
References $dir, $dirs, and as.
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 142 of file UploadFromUrlTestSuite.php.
References $file, $files, and as.
Referenced by teardownUploadDir().
UploadFromUrlTestSuite::setUp | ( | ) | [protected] |
Definition at line 18 of file UploadFromUrlTestSuite.php.
References $IP, $messageMemc, $parserMemc, $wgLang, $wgMemc, $wgNamespaceAliases, $wgNamespaceProtection, $wgOut, $wgParser, $wgUser, array(), as, DeferredUpdates\clearPendingUpdates(), FileBackendGroup\destroySingleton(), RepoGroup\destroySingleton(), RequestContext\getLanguage(), global, User, 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 169 of file UploadFromUrlTestSuite.php.
References $dir, $IP, global, wfDebug(), wfMkdirParents(), and wfTempDir().
static UploadFromUrlTestSuite::suite | ( | ) | [static] |
Definition at line 199 of file UploadFromUrlTestSuite.php.
UploadFromUrlTestSuite::tearDown | ( | ) | [protected] |
Definition at line 81 of file UploadFromUrlTestSuite.php.
References as, FileBackendGroup\destroySingleton(), RepoGroup\destroySingleton(), and teardownUploadDir().
UploadFromUrlTestSuite::teardownUploadDir | ( | $ | dir | ) | [private] |
Remove the dummy uploads directory.
Definition at line 100 of file UploadFromUrlTestSuite.php.
References array(), deleteDirs(), and deleteFiles().
Referenced by tearDown().
UploadFromUrlTestSuite::$keepUploads [private] |
Definition at line 95 of file UploadFromUrlTestSuite.php.
UploadFromUrlTestSuite::$savedGlobals = array() |
Definition at line 6 of file UploadFromUrlTestSuite.php.
UploadFromUrlTestSuite::$uploadDir [private] |
Definition at line 94 of file UploadFromUrlTestSuite.php.