MediaWiki  1.28.0
UploadFromUrlTestSuite Class Reference
Inheritance diagram for UploadFromUrlTestSuite:
Collaboration diagram for UploadFromUrlTestSuite:

Static Public Member Functions

static addTables (&$tables)
 
static suite ()
 

Public Attributes

 $savedGlobals = []
 

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

Static Private Member Functions

static deleteDirs ($dirs)
 Delete the specified directories, if they exist. More...
 
static deleteFiles ($files)
 Delete the specified files, if they exist. More...
 

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.

References $tables.

static UploadFromUrlTestSuite::deleteDirs (   $dirs)
staticprivate

Delete the specified directories, if they exist.

Must be empty.

Parameters
array$dirsFull paths to directories to delete.

Definition at line 111 of file UploadFromUrlTestSuite.php.

References $dir, $dirs, and as.

static UploadFromUrlTestSuite::deleteFiles (   $files)
staticprivate

Delete the specified files, if they exist.

Parameters
array$filesFull paths to files to delete.

Definition at line 98 of file UploadFromUrlTestSuite.php.

References $files, and as.

UploadFromUrlTestSuite::setupUploadDir ( )
private

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 125 of file UploadFromUrlTestSuite.php.

References $dir, $IP, copy, global, wfDebug(), and wfMkdirParents().

static UploadFromUrlTestSuite::suite ( )
static

Definition at line 141 of file UploadFromUrlTestSuite.php.

UploadFromUrlTestSuite::tearDown ( )
protected

Member Data Documentation

UploadFromUrlTestSuite::$savedGlobals = []

Definition at line 6 of file UploadFromUrlTestSuite.php.


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