MediaWiki  1.34.4
Scribunto_LuaSandboxInterpreterTest Class Reference

@group Lua @group LuaSandbox @covers Scribunto_LuaSandboxInterpreter More...

Inheritance diagram for Scribunto_LuaSandboxInterpreterTest:
Collaboration diagram for Scribunto_LuaSandboxInterpreterTest:

Public Member Functions

 testGetMemoryUsage ()
 
- Public Member Functions inherited from Scribunto_LuaInterpreterTest
 passthru ()
 
 provideRoundtrip ()
 
 testDoubleRoundtrip ()
 @dataProvider provideRoundtrip More...
 
 testRegisterInterfaceWithSameName ()
 
 testRoundtrip ()
 @dataProvider provideRoundtrip More...
 
 testRoundtripNAN ()
 This cannot be done in testRoundtrip and testDoubleRoundtrip, because assertSame( NAN, NAN ) returns false. More...
 
 testTestMemoryLimit ()
 
 testTimeLimit ()
 
 testWrapPHPFunction ()
 

Public Attributes

 $stdOpts
 

Protected Member Functions

 newInterpreter ( $opts=[])
 
- Protected Member Functions inherited from Scribunto_LuaInterpreterTest
 getBusyLoop ( $interpreter)
 
 setUp ()
 

Detailed Description

@group Lua @group LuaSandbox @covers Scribunto_LuaSandboxInterpreter

Definition at line 14 of file LuaSandboxInterpreterTest.php.

Member Function Documentation

◆ newInterpreter()

Scribunto_LuaSandboxInterpreterTest::newInterpreter (   $opts = [])
protected
Returns
Scribunto_LuaInterpreter

Reimplemented from Scribunto_LuaInterpreterTest.

Definition at line 20 of file LuaSandboxInterpreterTest.php.

References $stdOpts.

Referenced by testGetMemoryUsage().

◆ testGetMemoryUsage()

Scribunto_LuaSandboxInterpreterTest::testGetMemoryUsage ( )

Definition at line 26 of file LuaSandboxInterpreterTest.php.

References newInterpreter().

Member Data Documentation

◆ $stdOpts

Scribunto_LuaSandboxInterpreterTest::$stdOpts
Initial value:
= [
'memoryLimit' => 50000000,
'cpuLimit' => 30,
]

Definition at line 15 of file LuaSandboxInterpreterTest.php.

Referenced by newInterpreter().


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