MediaWiki  master
ParserOptionsTest Class Reference

ParserOptions. More...

Inheritance diagram for ParserOptionsTest:
Collaboration diagram for ParserOptionsTest:

Public Member Functions

 testAllCacheVaryingOptions ()
 
 testGetInvalidOption ()
 InvalidArgumentException Unknown parser option bogus. More...
 
 testGetSpeculativeRevid ()
 
 testIsSafeToCache ( $expect, $options)
 provideIsSafeToCache More...
 
 testMatches ()
 
 testMatchesForCacheKey ()
 
 testNewCanonical ()
 
 testOptionsHash ( $usedOptions, $expect, $options, $globals=[], $hookFunc=null)
 provideOptionsHash More...
 
 testSetInvalidOption ()
 InvalidArgumentException Unknown parser option bogus. More...
 
 testUsedLazyOptionsInHash ()
 

Static Public Member Functions

static onPageRenderingHash (&$confstr)
 
static provideIsSafeToCache ()
 
static provideOptionsHash ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Static Private Member Functions

static clearCache ()
 

Detailed Description

ParserOptions.

Definition at line 9 of file ParserOptionsTest.php.

Member Function Documentation

◆ clearCache()

static ParserOptionsTest::clearCache ( )
staticprivate

Definition at line 11 of file ParserOptionsTest.php.

References class, and null.

◆ onPageRenderingHash()

static ParserOptionsTest::onPageRenderingHash ( $confstr)
static

Definition at line 233 of file ParserOptionsTest.php.

◆ provideIsSafeToCache()

static ParserOptionsTest::provideIsSafeToCache ( )
static

Definition at line 120 of file ParserOptionsTest.php.

◆ provideOptionsHash()

static ParserOptionsTest::provideOptionsHash ( )
static

Definition at line 163 of file ParserOptionsTest.php.

References class.

◆ setUp()

ParserOptionsTest::setUp ( )
protected

Definition at line 28 of file ParserOptionsTest.php.

References null.

◆ tearDown()

ParserOptionsTest::tearDown ( )
protected

Definition at line 41 of file ParserOptionsTest.php.

◆ testAllCacheVaryingOptions()

ParserOptionsTest::testAllCacheVaryingOptions ( )

Definition at line 312 of file ParserOptionsTest.php.

References ParserOptions\allCacheVaryingOptions(), and null.

◆ testGetInvalidOption()

ParserOptionsTest::testGetInvalidOption ( )

InvalidArgumentException Unknown parser option bogus.

Definition at line 241 of file ParserOptionsTest.php.

References ParserOptions\newCanonical().

◆ testGetSpeculativeRevid()

ParserOptionsTest::testGetSpeculativeRevid ( )

Definition at line 338 of file ParserOptionsTest.php.

References $options, and use.

◆ testIsSafeToCache()

ParserOptionsTest::testIsSafeToCache (   $expect,
  $options 
)

provideIsSafeToCache

Parameters
bool$expectExpected value
array$optionsOptions to set

Definition at line 112 of file ParserOptionsTest.php.

References $name, $options, $value, as, and ParserOptions\newCanonical().

◆ testMatches()

ParserOptionsTest::testMatches ( )

Definition at line 255 of file ParserOptionsTest.php.

References class, ParserOptions\newCanonical(), null, and use.

◆ testMatchesForCacheKey()

◆ testNewCanonical()

ParserOptionsTest::testNewCanonical ( )

◆ testOptionsHash()

ParserOptionsTest::testOptionsHash (   $usedOptions,
  $expect,
  $options,
  $globals = [],
  $hookFunc = null 
)

provideOptionsHash

Parameters
array$usedOptionsUsed options
string$expectExpected value
array$optionsOptions to set
array$globalsGlobals to set
callable | null$hookFuncPageRenderingHash hook function

Definition at line 150 of file ParserOptionsTest.php.

References $name, $options, $value, as, and ParserOptions\newCanonical().

◆ testSetInvalidOption()

ParserOptionsTest::testSetInvalidOption ( )

InvalidArgumentException Unknown parser option bogus.

Definition at line 250 of file ParserOptionsTest.php.

References ParserOptions\newCanonical().

◆ testUsedLazyOptionsInHash()

ParserOptionsTest::testUsedLazyOptionsInHash ( )

Definition at line 195 of file ParserOptionsTest.php.

References class, ParserOptions\newCanonical(), and null.


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