MediaWiki  REL1_24
GlobalTest Class Reference

GlobalFunctions More...

Inheritance diagram for GlobalTest:
Collaboration diagram for GlobalTest:

List of all members.

Public Member Functions

 testArrayToCGI ($array, $result)
 provideArrayToCGI wfArrayToCgi
 testArrayToCGI2 ()
 wfArrayToCgi
 testCgiRoundTrip ($cgi)
 provideCgiRoundTrip wfArrayToCgi
 testCgiToArray ($cgi, $result)
 provideCgiToArray wfCgiToArray
 testClientAcceptsGzipTest ()
 wfClientAcceptsGzip
 testDebugFunctionTest ()
 wfDebug wfDebugMem
 testExpandIRI ()
 wfExpandIRI
 testMakeUrlIndexes ($url, $expected)
 provideMakeUrlIndexes() wfMakeUrlIndexes
 testMerge ($old, $mine, $yours, $expectedMergeResult, $expectedText)
 testMimeTypeMatch ()
 mimeTypeMatch
 testNegotiateType ()
 wfNegotiateType
 testRandom ()
 wfRandom
 testRandomString ()
 wfRandomString
 testReadOnlyEmpty ()
 wfReadOnly
 testReadOnlySet ()
 wfReadOnly
 testSwapVarsTest ()
 swap
 testUrlencode ()
 wfUrlencode
 testWfArrayDiff2 ($a, $b, $expected)
 provideForWfArrayDiff2 wfArrayDiff2
 testWfMatchesDomainList ($url, $domains, $expected, $description)
 provideWfMatchesDomainList wfMatchesDomainList
 testWfMkdirParents ()
 wfMkdirParents
 testWfPercentTest ()
 wfPercent
 testWfShellMaintenanceCmd ($script, $parameters, $options, $expected, $description)
 provideWfShellMaintenanceCmdList wfShellMaintenanceCmd
 testWfShorthandToInteger ($shorthand, $expected)
 test

Static Public Member Functions

static provideArrayToCGI ()
static provideCgiRoundTrip ()
static provideCgiToArray ()
static provideForWfArrayDiff2 ()
static provideMakeUrlIndexes ()
static provideMerge ()
static provideShorthand ()
 array( shorthand, expected integer )
static provideWfMatchesDomainList ()
static provideWfShellMaintenanceCmdList ()

Protected Member Functions

 setUp ()
 tearDown ()

Detailed Description

GlobalFunctions

Definition at line 6 of file GlobalTest.php.


Member Function Documentation

static GlobalTest::provideArrayToCGI ( ) [static]

Definition at line 145 of file GlobalTest.php.

References array().

static GlobalTest::provideCgiRoundTrip ( ) [static]

Definition at line 220 of file GlobalTest.php.

References array().

static GlobalTest::provideCgiToArray ( ) [static]

Definition at line 191 of file GlobalTest.php.

References array().

Definition at line 46 of file GlobalTest.php.

References array().

static GlobalTest::provideMakeUrlIndexes ( ) [static]

Definition at line 584 of file GlobalTest.php.

References array().

static GlobalTest::provideMerge ( ) [static]

Definition at line 520 of file GlobalTest.php.

References array().

static GlobalTest::provideShorthand ( ) [static]

array( shorthand, expected integer )

Definition at line 449 of file GlobalTest.php.

References array(), empty, and strings.

Definition at line 642 of file GlobalTest.php.

References array(), and as.

Definition at line 722 of file GlobalTest.php.

References array(), and global.

GlobalTest::setUp ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 7 of file GlobalTest.php.

References array(), MediaWikiTestCase\setMwGlobals(), and wfTempDir().

GlobalTest::tearDown ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 25 of file GlobalTest.php.

References global.

GlobalTest::testArrayToCGI ( array,
result 
)

provideArrayToCGI wfArrayToCgi

Definition at line 176 of file GlobalTest.php.

References $result, and wfArrayToCgi().

wfArrayToCgi

Definition at line 183 of file GlobalTest.php.

References array(), and wfArrayToCgi().

provideCgiRoundTrip wfArrayToCgi

Definition at line 237 of file GlobalTest.php.

References wfArrayToCgi(), and wfCgiToArray().

GlobalTest::testCgiToArray ( cgi,
result 
)

provideCgiToArray wfCgiToArray

Definition at line 216 of file GlobalTest.php.

References $result, and wfCgiToArray().

wfExpandIRI

Definition at line 103 of file GlobalTest.php.

References wfExpandIRI().

GlobalTest::testMakeUrlIndexes ( url,
expected 
)
GlobalTest::testMerge ( old,
mine,
yours,
expectedMergeResult,
expectedText 
)
Parameters:
string$oldText as it was in the database
string$mineText submitted while user was editing
string$yoursText submitted by the user
bool$expectedMergeResultWhether the merge should be a success
string$expectedTextText after merge has been completed

provideMerge() medium wfMerge

Definition at line 503 of file GlobalTest.php.

References MediaWikiTestCase\checkHasDiff3(), and wfMerge().

mimeTypeMatch

Definition at line 244 of file GlobalTest.php.

References array(), and mimeTypeMatch().

wfRandom

Definition at line 70 of file GlobalTest.php.

References wfRandom().

wfRandomString

Definition at line 79 of file GlobalTest.php.

References wfRandomString().

wfReadOnly

Definition at line 116 of file GlobalTest.php.

References global, and wfReadOnly().

wfReadOnly

Definition at line 127 of file GlobalTest.php.

References $f, cache, cached, global, on, and wfReadOnly().

wfUrlencode

Definition at line 94 of file GlobalTest.php.

References wfUrlencode().

GlobalTest::testWfArrayDiff2 ( a,
b,
expected 
)

provideForWfArrayDiff2 wfArrayDiff2

Definition at line 39 of file GlobalTest.php.

References wfArrayDiff2().

GlobalTest::testWfMatchesDomainList ( url,
domains,
expected,
description 
)

provideWfMatchesDomainList wfMatchesDomainList

Definition at line 637 of file GlobalTest.php.

References wfMatchesDomainList().

wfPercent

Definition at line 412 of file GlobalTest.php.

References array(), as, and wfPercent().

GlobalTest::testWfShellMaintenanceCmd ( script,
parameters,
options,
expected,
description 
)

provideWfShellMaintenanceCmdList wfShellMaintenanceCmd

Definition at line 711 of file GlobalTest.php.

References $options, wfIsWindows(), and wfShellMaintenanceCmd().

GlobalTest::testWfShorthandToInteger ( shorthand,
expected 
)

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