MediaWiki  1.34.0
Scribunto_LuaCommonTest Class Reference

@covers ScribuntoEngineBase @covers Scribunto_LuaEngine @covers Scribunto_LuaStandaloneEngine @covers Scribunto_LuaSandboxEngine @covers Scribunto_LuaInterpreter @covers Scribunto_LuaStandaloneInterpreter @covers Scribunto_LuaSandboxInterpreter More...

Inheritance diagram for Scribunto_LuaCommonTest:
Collaboration diagram for Scribunto_LuaCommonTest:

Public Member Functions

 provideVolatileCaching ()
 
 testBug62291 ()
 
 testCallParserFunction ()
 
 testFrames ()
 
 testGetCurrentFrameAndMWLoadData ()
 
 testGetCurrentFrameAtModuleScope ()
 
 testLoadDataLoadedOnce ()
 
 testModuleStringExtend ()
 
 testNoLeakedGlobals ()
 
 testNonUtf8Errors ()
 
 testOsDateTimeTTLs ()
 
 testPHPLibrary ()
 
 testVolatileCaching ( $func)
 @dataProvider provideVolatileCaching More...
 
- Public Member Functions inherited from Scribunto_LuaEngineTestBase
 __construct ( $name=null, array $data=[], $dataName='', $engineName=null)
 
 provideLuaData ()
 
 testLua ( $key, $testName, $expected)
 @dataProvider provideLuaData More...
 
 toString ()
 

Protected Member Functions

 getTestModules ()
 
 setUp ()
 
- Protected Member Functions inherited from Scribunto_LuaEngineTestBase
 getTestTitle ()
 Get the title used for unit tests. More...
 
 tearDown ()
 

Static Protected Attributes

static $moduleName = 'CommonTests'
 
- Static Protected Attributes inherited from Scribunto_LuaEngineTestBase
static string $dataProviderClass = 'Scribunto_LuaDataProvider'
 Class to use for the data provider. More...
 
static string $moduleName = null
 Name of the module being tested. More...
 

Static Private Attributes

static $allowedGlobals
 

Additional Inherited Members

- Static Public Member Functions inherited from Scribunto_LuaEngineTestBase
static suite ( $className)
 
- Protected Attributes inherited from Scribunto_LuaEngineTestBase
string $luaTestName = null
 Name to display instead of the default. More...
 
array $skipTests = []
 Tests to skip. More...
 

Detailed Description

Member Function Documentation

◆ getTestModules()

Scribunto_LuaCommonTest::getTestModules ( )
protected

Reimplemented from Scribunto_LuaEngineTestBase.

Definition at line 83 of file CommonTest.php.

◆ provideVolatileCaching()

Scribunto_LuaCommonTest::provideVolatileCaching ( )

Definition at line 656 of file CommonTest.php.

◆ setUp()

Scribunto_LuaCommonTest::setUp ( )
protected

Definition at line 52 of file CommonTest.php.

References Scribunto_LuaEngineTestBase\$engine, and getEngine().

◆ testBug62291()

Scribunto_LuaCommonTest::testBug62291 ( )

◆ testCallParserFunction()

Scribunto_LuaCommonTest::testCallParserFunction ( )

◆ testFrames()

Scribunto_LuaCommonTest::testFrames ( )

◆ testGetCurrentFrameAndMWLoadData()

Scribunto_LuaCommonTest::testGetCurrentFrameAndMWLoadData ( )

Definition at line 664 of file CommonTest.php.

References Scribunto_LuaEngineTestBase\$engine, and getEngine().

◆ testGetCurrentFrameAtModuleScope()

Scribunto_LuaCommonTest::testGetCurrentFrameAtModuleScope ( )

Definition at line 684 of file CommonTest.php.

References Scribunto_LuaEngineTestBase\$engine, and getEngine().

◆ testLoadDataLoadedOnce()

Scribunto_LuaCommonTest::testLoadDataLoadedOnce ( )

◆ testModuleStringExtend()

Scribunto_LuaCommonTest::testModuleStringExtend ( )

◆ testNoLeakedGlobals()

Scribunto_LuaCommonTest::testNoLeakedGlobals ( )

Definition at line 95 of file CommonTest.php.

References getEngine().

◆ testNonUtf8Errors()

Scribunto_LuaCommonTest::testNonUtf8Errors ( )

◆ testOsDateTimeTTLs()

Scribunto_LuaCommonTest::testOsDateTimeTTLs ( )

◆ testPHPLibrary()

Scribunto_LuaCommonTest::testPHPLibrary ( )

◆ testVolatileCaching()

Scribunto_LuaCommonTest::testVolatileCaching (   $func)

@dataProvider provideVolatileCaching

Definition at line 621 of file CommonTest.php.

References Scribunto_LuaEngineTestBase\$engine, and getEngine().

Member Data Documentation

◆ $allowedGlobals

Scribunto_LuaCommonTest::$allowedGlobals
staticprivate

Definition at line 15 of file CommonTest.php.

◆ $moduleName

Scribunto_LuaCommonTest::$moduleName = 'CommonTests'
staticprotected

Definition at line 13 of file CommonTest.php.


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