MediaWiki  1.34.4
LuaEngineTestHelper.php File Reference

Go to the source code of this file.

Functions

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

Variables

trait Scribunto_LuaEngineTestHelper
 Trait that helps LuaEngineTestBase and LuaEngineUnitTestBase. More...
 

Function Documentation

◆ getEngine()

◆ getTestTitle()

getTestTitle ( )
protected

Get the title used for unit tests.

Returns
Title

Definition at line 153 of file LuaEngineTestHelper.php.

References Title\newMainPage().

Referenced by getEngine().

◆ makeSuite()

◆ templateCallback()

templateCallback (   $title,
  $parser 
)

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.