MediaWiki REL1_34
LuaEngineTestHelper.php File Reference

Go to the source code of this file.

Functions

 getEngine ()
 
 getTestTitle ()
 Get the title used for unit tests.
 
static makeSuite ( $className, $group=null)
 
 templateCallback ( $title, $parser)
 

Variables

trait Scribunto_LuaEngineTestHelper
 Trait that helps LuaEngineTestBase and LuaEngineUnitTestBase.
 

Function Documentation

◆ getEngine()

◆ getTestTitle()

getTestTitle ( )
protected

Get the title used for unit tests.

Returns
Title

Definition at line 153 of file LuaEngineTestHelper.php.

Referenced by getEngine().

◆ makeSuite()

static makeSuite ( $className,
$group = null )
staticprotected

◆ templateCallback()

templateCallback ( $title,
$parser )

Definition at line 125 of file LuaEngineTestHelper.php.

References $modules, $title, and NS_MODULE.

Variable Documentation

◆ Scribunto_LuaEngineTestHelper

trait Scribunto_LuaEngineTestHelper
Initial value:
{
private static $engineConfigurations = [
'LuaSandbox' => [
'memoryLimit' => 50000000,
'cpuLimit' => 30,
'allowEnvFuncs' => true,
'maxLangCacheSize' => 30,
],
'LuaStandalone' => [
'errorFile' => null,
'luaPath' => null,
'memoryLimit' => 50000000,
'cpuLimit' => 30,
'allowEnvFuncs' => true,
'maxLangCacheSize' => 30,
],
]

Trait that helps LuaEngineTestBase and LuaEngineUnitTestBase.

Definition at line 6 of file LuaEngineTestHelper.php.