MediaWiki REL1_34
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
 
- Public Member Functions inherited from Scribunto_LuaEngineTestBase
 __construct ( $name=null, array $data=[], $dataName='', $engineName=null)
 
 provideLuaData ()
 
 testLua ( $key, $testName, $expected)
 @dataProvider provideLuaData
 
 toString ()
 

Protected Member Functions

 getTestModules ()
 
 setUp ()
 
- Protected Member Functions inherited from Scribunto_LuaEngineTestBase
 getTestTitle ()
 Get the title used for unit tests.
 
 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.
 
static string $moduleName = null
 Name of the module being tested.
 

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.
 
array $skipTests = []
 Tests to skip.
 

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 ( )

Definition at line 485 of file CommonTest.php.

References Scribunto_LuaEngineTestBase\$engine, $title, getEngine(), and NS_MODULE.

◆ testCallParserFunction()

Scribunto_LuaCommonTest::testCallParserFunction ( )

Definition at line 358 of file CommonTest.php.

References $args, Scribunto_LuaEngineTestBase\$engine, getEngine(), and NS_MODULE.

◆ testFrames()

Scribunto_LuaCommonTest::testFrames ( )

Definition at line 327 of file CommonTest.php.

References Scribunto_LuaEngineTestBase\$engine, getEngine(), and NS_MODULE.

◆ 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 ( )

Definition at line 281 of file CommonTest.php.

References Scribunto_LuaEngineTestBase\$engine, $title, getEngine(), and NS_MODULE.

◆ testModuleStringExtend()

Scribunto_LuaCommonTest::testModuleStringExtend ( )

Definition at line 203 of file CommonTest.php.

References Scribunto_LuaEngineTestBase\$engine, getEngine(), and NS_MODULE.

◆ testNoLeakedGlobals()

Scribunto_LuaCommonTest::testNoLeakedGlobals ( )

Definition at line 95 of file CommonTest.php.

References getEngine().

◆ testNonUtf8Errors()

Scribunto_LuaCommonTest::testNonUtf8Errors ( )

◆ testOsDateTimeTTLs()

Scribunto_LuaCommonTest::testOsDateTimeTTLs ( )

Definition at line 529 of file CommonTest.php.

References Scribunto_LuaEngineTestBase\$engine, $title, getEngine(), and NS_MODULE.

◆ testPHPLibrary()

Scribunto_LuaCommonTest::testPHPLibrary ( )

Definition at line 111 of file CommonTest.php.

References $args, Scribunto_LuaEngineTestBase\$engine, $title, getEngine(), and NS_MODULE.

◆ 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: