MediaWiki REL1_34
Scribunto_LuaEnvironmentComparisonTest Class Reference

@group Lua @group LuaSandbox @group LuaStandalone @coversNothing More...

Inheritance diagram for Scribunto_LuaEnvironmentComparisonTest:
Collaboration diagram for Scribunto_LuaEnvironmentComparisonTest:

Public Member Functions

 testGlobalEnvironment ()
 

Public Attributes

 $sandboxOpts
 
 $standaloneOpts
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

 $engines = []
 

Private Member Functions

 getGlobalEnvironment ( $engine)
 
 makeEngine ( $class, $opts)
 

Detailed Description

@group Lua @group LuaSandbox @group LuaStandalone @coversNothing

Definition at line 9 of file LuaEnvironmentComparisonTest.php.

Member Function Documentation

◆ getGlobalEnvironment()

Scribunto_LuaEnvironmentComparisonTest::getGlobalEnvironment ( $engine)
private

Definition at line 70 of file LuaEnvironmentComparisonTest.php.

Referenced by testGlobalEnvironment().

◆ makeEngine()

Scribunto_LuaEnvironmentComparisonTest::makeEngine ( $class,
$opts )
private

Definition at line 28 of file LuaEnvironmentComparisonTest.php.

References ParserOptions\setTemplateCallback().

Referenced by setUp().

◆ setUp()

Scribunto_LuaEnvironmentComparisonTest::setUp ( )
protected

Definition at line 40 of file LuaEnvironmentComparisonTest.php.

References makeEngine().

◆ tearDown()

Scribunto_LuaEnvironmentComparisonTest::tearDown ( )
protected

Definition at line 62 of file LuaEnvironmentComparisonTest.php.

◆ testGlobalEnvironment()

Scribunto_LuaEnvironmentComparisonTest::testGlobalEnvironment ( )

Definition at line 102 of file LuaEnvironmentComparisonTest.php.

References getGlobalEnvironment().

Member Data Documentation

◆ $engines

Scribunto_LuaEnvironmentComparisonTest::$engines = []
protected

Definition at line 26 of file LuaEnvironmentComparisonTest.php.

◆ $sandboxOpts

Scribunto_LuaEnvironmentComparisonTest::$sandboxOpts
Initial value:
= [
'memoryLimit' => 50000000,
'cpuLimit' => 30,
'allowEnvFuncs' => true,
]

Definition at line 13 of file LuaEnvironmentComparisonTest.php.

◆ $standaloneOpts

Scribunto_LuaEnvironmentComparisonTest::$standaloneOpts
Initial value:
= [
'errorFile' => null,
'luaPath' => null,
'memoryLimit' => 50000000,
'cpuLimit' => 30,
'allowEnvFuncs' => true,
]

Definition at line 18 of file LuaEnvironmentComparisonTest.php.


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