MediaWiki  REL1_22
UploadFromUrlTestSuite Class Reference

List of all members.

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

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

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

Definition at line 142 of file UploadFromUrlTestSuite.php.

References $file, $files, and as.

Referenced by teardownUploadDir().

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

Remove the dummy uploads directory.

Definition at line 100 of file UploadFromUrlTestSuite.php.

References array(), deleteDirs(), and deleteFiles().

Referenced by tearDown().


Member Data Documentation

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.


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