MediaWiki  REL1_19
UploadFromUrlTestSuite Class Reference

List of all members.

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

Detailed Description

Definition at line 5 of file UploadFromUrlTestSuite.php.


Member Function Documentation

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.

Parameters:
$dirsArray: full paths to directories to delete.

Definition at line 154 of file UploadFromUrlTestSuite.php.

References $dir.

Referenced by teardownUploadDir().

Here is the caller graph for this function:

static UploadFromUrlTestSuite::deleteFiles ( files) [static, private]

Delete the specified files, if they exist.

Parameters:
$filesArray: full paths to files to delete.

Definition at line 141 of file UploadFromUrlTestSuite.php.

References $file, and $files.

Referenced by teardownUploadDir().

Here is the caller graph for this function:

Create a dummy uploads directory which will contain a couple of files in order to pass existence tests.

Returns:
String: the directory

Definition at line 168 of file UploadFromUrlTestSuite.php.

References $dir, $IP, wfDebug(), wfMkdirParents(), and wfTempDir().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Remove the dummy uploads directory.

Definition at line 99 of file UploadFromUrlTestSuite.php.

References deleteDirs(), and deleteFiles().

Referenced by tearDown().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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.


The documentation for this class was generated from the following file: