MediaWiki  master
GlobalTest Class Reference

Database GlobalFunctions. More...

Inheritance diagram for GlobalTest:
Collaboration diagram for GlobalTest:

Public Member Functions

 testArrayToCGI ( $array, $result)
 provideArrayToCGI wfArrayToCgi More...
 
 testArrayToCGI2 ()
 wfArrayToCgi More...
 
 testCgiRoundTrip ( $cgi)
 provideCgiRoundTrip wfArrayToCgi More...
 
 testCgiToArray ( $cgi, $result)
 provideCgiToArray wfCgiToArray More...
 
 testClientAcceptsGzipTest ()
 wfClientAcceptsGzip More...
 
 testDebugFunctionTest ()
 wfDebug wfDebugMem More...
 
 testExpandIRI ()
 wfExpandIRI More...
 
 testMerge ( $old, $mine, $yours, $expectedMergeResult, $expectedText, $expectedMergeAttemptResult)
 
 testMerge_worksWithLessParameters ()
 wfMerge More...
 
 testMimeTypeMatch ()
 mimeTypeMatch More...
 
 testNegotiateType ()
 wfNegotiateType More...
 
 testRandom ()
 wfRandom More...
 
 testRandomString ()
 wfRandomString More...
 
 testReadOnlyEmpty ()
 Intended to cover the relevant bits of ServiceWiring.php, as well as GlobalFunctions.php wfReadOnly. More...
 
 testReadOnlyGlobalChange ()
 This behaviour could probably be deprecated. More...
 
 testReadOnlySet ()
 Intended to cover the relevant bits of ServiceWiring.php, as well as GlobalFunctions.php wfReadOnly. More...
 
 testUrlencode ()
 wfUrlencode More...
 
 testWfArrayDiff2 ( $a, $b, $expected)
 provideForWfArrayDiff2 wfArrayDiff2 More...
 
 testWfForeignMemcKey ()
 wfForeignMemcKey More...
 
 testWfGlobalCacheKey ()
 wfGlobalCacheKey More...
 
 testWfMatchesDomainList ( $url, $domains, $expected, $description)
 provideWfMatchesDomainList wfMatchesDomainList More...
 
 testWfMemcKey ()
 wfMemcKey More...
 
 testWfMkdirParents ()
 wfMkdirParents More...
 
 testWfPercentTest ()
 wfPercent More...
 
 testWfShellWikiCmd ( $script, $parameters, $options, $expected, $description)
 provideWfShellWikiCmdList wfShellWikiCmd More...
 
 testWfShorthandToInteger ( $shorthand, $expected)
 test More...
 
 wfWikiID ()
 

Static Public Member Functions

static provideArrayToCGI ()
 
static provideCgiRoundTrip ()
 
static provideCgiToArray ()
 
static provideForWfArrayDiff2 ()
 
static provideMerge ()
 
static provideShorthand ()
 
static provideWfMatchesDomainList ()
 
static provideWfShellWikiCmdList ()
 

Protected Member Functions

 setUp ()
 

Detailed Description

Database GlobalFunctions.

Definition at line 9 of file GlobalTest.php.

Member Function Documentation

◆ provideArrayToCGI()

static GlobalTest::provideArrayToCGI ( )
static

Definition at line 145 of file GlobalTest.php.

References false, null, and true.

◆ provideCgiRoundTrip()

static GlobalTest::provideCgiRoundTrip ( )
static

Definition at line 220 of file GlobalTest.php.

◆ provideCgiToArray()

static GlobalTest::provideCgiToArray ( )
static

Definition at line 191 of file GlobalTest.php.

◆ provideForWfArrayDiff2()

static GlobalTest::provideForWfArrayDiff2 ( )
static

Definition at line 40 of file GlobalTest.php.

◆ provideMerge()

static GlobalTest::provideMerge ( )
static

Definition at line 517 of file GlobalTest.php.

References null.

◆ provideShorthand()

static GlobalTest::provideShorthand ( )
static

Definition at line 425 of file GlobalTest.php.

References null.

◆ provideWfMatchesDomainList()

static GlobalTest::provideWfMatchesDomainList ( )
static

Definition at line 591 of file GlobalTest.php.

References as.

◆ provideWfShellWikiCmdList()

static GlobalTest::provideWfShellWikiCmdList ( )
static

Definition at line 726 of file GlobalTest.php.

References $wgPhpCli.

◆ setUp()

GlobalTest::setUp ( )
protected

Definition at line 10 of file GlobalTest.php.

References null.

◆ testArrayToCGI()

GlobalTest::testArrayToCGI (   $array,
  $result 
)

provideArrayToCGI wfArrayToCgi

Definition at line 176 of file GlobalTest.php.

References wfArrayToCgi().

◆ testArrayToCGI2()

GlobalTest::testArrayToCGI2 ( )

wfArrayToCgi

Definition at line 183 of file GlobalTest.php.

References wfArrayToCgi().

◆ testCgiRoundTrip()

GlobalTest::testCgiRoundTrip (   $cgi)

provideCgiRoundTrip wfArrayToCgi

Definition at line 237 of file GlobalTest.php.

References wfArrayToCgi(), and wfCgiToArray().

◆ testCgiToArray()

GlobalTest::testCgiToArray (   $cgi,
  $result 
)

provideCgiToArray wfCgiToArray

Definition at line 216 of file GlobalTest.php.

References wfCgiToArray().

◆ testClientAcceptsGzipTest()

GlobalTest::testClientAcceptsGzipTest ( )

wfClientAcceptsGzip

Definition at line 357 of file GlobalTest.php.

References as, wfBoolToStr(), and wfClientAcceptsGzip().

◆ testDebugFunctionTest()

GlobalTest::testDebugFunctionTest ( )

◆ testExpandIRI()

GlobalTest::testExpandIRI ( )

wfExpandIRI

Definition at line 93 of file GlobalTest.php.

References wfExpandIRI().

◆ testMerge()

GlobalTest::testMerge (   $old,
  $mine,
  $yours,
  $expectedMergeResult,
  $expectedText,
  $expectedMergeAttemptResult 
)
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
string$expectedMergeAttemptResultDiff3 output if conflicts occur

provideMerge() medium wfMerge

Definition at line 497 of file GlobalTest.php.

References null, and wfMerge().

◆ testMerge_worksWithLessParameters()

GlobalTest::testMerge_worksWithLessParameters ( )

wfMerge

Definition at line 472 of file GlobalTest.php.

References null, and wfMerge().

◆ testMimeTypeMatch()

GlobalTest::testMimeTypeMatch ( )

mimeTypeMatch

Definition at line 244 of file GlobalTest.php.

References mimeTypeMatch().

◆ testNegotiateType()

GlobalTest::testNegotiateType ( )

wfNegotiateType

Definition at line 269 of file GlobalTest.php.

References wfNegotiateType().

◆ testRandom()

GlobalTest::testRandom ( )

wfRandom

Definition at line 64 of file GlobalTest.php.

References wfRandom().

◆ testRandomString()

GlobalTest::testRandomString ( )

wfRandomString

Definition at line 73 of file GlobalTest.php.

References wfRandomString().

◆ testReadOnlyEmpty()

GlobalTest::testReadOnlyEmpty ( )

Intended to cover the relevant bits of ServiceWiring.php, as well as GlobalFunctions.php wfReadOnly.

Definition at line 107 of file GlobalTest.php.

References wfReadOnly().

◆ testReadOnlyGlobalChange()

GlobalTest::testReadOnlyGlobalChange ( )

This behaviour could probably be deprecated.

Several extensions rely on it as of 1.29. wfReadOnlyReason

Definition at line 134 of file GlobalTest.php.

References wfReadOnlyReason().

◆ testReadOnlySet()

GlobalTest::testReadOnlySet ( )

Intended to cover the relevant bits of ServiceWiring.php, as well as GlobalFunctions.php wfReadOnly.

Definition at line 116 of file GlobalTest.php.

References $f, $wgReadOnlyFile, and wfReadOnly().

◆ testUrlencode()

GlobalTest::testUrlencode ( )

wfUrlencode

Definition at line 84 of file GlobalTest.php.

References wfUrlencode().

◆ testWfArrayDiff2()

GlobalTest::testWfArrayDiff2 (   $a,
  $b,
  $expected 
)

provideForWfArrayDiff2 wfArrayDiff2

Definition at line 33 of file GlobalTest.php.

References wfArrayDiff2().

◆ testWfForeignMemcKey()

GlobalTest::testWfForeignMemcKey ( )

◆ testWfGlobalCacheKey()

GlobalTest::testWfGlobalCacheKey ( )

◆ testWfMatchesDomainList()

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

provideWfMatchesDomainList wfMatchesDomainList

Definition at line 586 of file GlobalTest.php.

References wfMatchesDomainList().

◆ testWfMemcKey()

GlobalTest::testWfMemcKey ( )

◆ testWfMkdirParents()

GlobalTest::testWfMkdirParents ( )

wfMkdirParents

Definition at line 647 of file GlobalTest.php.

References $fname, and wfMkdirParents().

◆ testWfPercentTest()

GlobalTest::testWfPercentTest ( )

wfPercent

Definition at line 390 of file GlobalTest.php.

References as, false, and wfPercent().

◆ testWfShellWikiCmd()

GlobalTest::testWfShellWikiCmd (   $script,
  $parameters,
  $options,
  $expected,
  $description 
)

provideWfShellWikiCmdList wfShellWikiCmd

Definition at line 660 of file GlobalTest.php.

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

◆ testWfShorthandToInteger()

GlobalTest::testWfShorthandToInteger (   $shorthand,
  $expected 
)

◆ wfWikiID()

GlobalTest::wfWikiID ( )

Definition at line 671 of file GlobalTest.php.


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