MediaWiki  1.34.0
Scribunto_LuaStandaloneInterpreterTest Class Reference

@group Lua @group LuaStandalone @covers Scribunto_LuaStandaloneInterpreter More...

Inheritance diagram for Scribunto_LuaStandaloneInterpreterTest:
Collaboration diagram for Scribunto_LuaStandaloneInterpreterTest:

Public Member Functions

 testFreeFunctions ()
 
 testGetStatus ()
 
 testIOErrorExit ()
 
 testIOErrorSignal ()
 
 testLuaToPhpArrayKeyConversion ( $lua, $expect)
 @dataProvider provideLuaToPhpArrayKeyConversion More...
 
 testPhpToLuaArrayKeyConversion ( $array, $expect)
 @dataProvider providePhpToLuaArrayKeyConversion More...
 
- 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 ()
 

Static Public Member Functions

static provideLuaToPhpArrayKeyConversion ()
 
static providePhpToLuaArrayKeyConversion ()
 

Public Attributes

 $stdOpts
 

Protected Member Functions

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

Private Member Functions

 getVsize ( $pid)
 

Detailed Description

@group Lua @group LuaStandalone @covers Scribunto_LuaStandaloneInterpreter

Definition at line 16 of file LuaStandaloneInterpreterTest.php.

Member Function Documentation

◆ getVsize()

Scribunto_LuaStandaloneInterpreterTest::getVsize (   $pid)
private

Definition at line 24 of file LuaStandaloneInterpreterTest.php.

References wfEscapeShellArg(), and wfShellExec().

Referenced by testGetStatus().

◆ newInterpreter()

Scribunto_LuaStandaloneInterpreterTest::newInterpreter (   $opts = [])
protected

◆ provideLuaToPhpArrayKeyConversion()

static Scribunto_LuaStandaloneInterpreterTest::provideLuaToPhpArrayKeyConversion ( )
static

Definition at line 146 of file LuaStandaloneInterpreterTest.php.

◆ providePhpToLuaArrayKeyConversion()

static Scribunto_LuaStandaloneInterpreterTest::providePhpToLuaArrayKeyConversion ( )
static

Definition at line 102 of file LuaStandaloneInterpreterTest.php.

◆ testFreeFunctions()

Scribunto_LuaStandaloneInterpreterTest::testFreeFunctions ( )

Definition at line 187 of file LuaStandaloneInterpreterTest.php.

References newInterpreter().

◆ testGetStatus()

Scribunto_LuaStandaloneInterpreterTest::testGetStatus ( )

◆ testIOErrorExit()

Scribunto_LuaStandaloneInterpreterTest::testIOErrorExit ( )

◆ testIOErrorSignal()

Scribunto_LuaStandaloneInterpreterTest::testIOErrorSignal ( )

◆ testLuaToPhpArrayKeyConversion()

Scribunto_LuaStandaloneInterpreterTest::testLuaToPhpArrayKeyConversion (   $lua,
  $expect 
)

@dataProvider provideLuaToPhpArrayKeyConversion

Definition at line 130 of file LuaStandaloneInterpreterTest.php.

References newInterpreter().

◆ testPhpToLuaArrayKeyConversion()

Scribunto_LuaStandaloneInterpreterTest::testPhpToLuaArrayKeyConversion (   $array,
  $expect 
)

@dataProvider providePhpToLuaArrayKeyConversion

Definition at line 89 of file LuaStandaloneInterpreterTest.php.

References newInterpreter().

Member Data Documentation

◆ $stdOpts

Scribunto_LuaStandaloneInterpreterTest::$stdOpts
Initial value:
= [
'errorFile' => null,
'luaPath' => null,
'memoryLimit' => 50000000,
'cpuLimit' => 30,
]

Definition at line 17 of file LuaStandaloneInterpreterTest.php.

Referenced by newInterpreter().


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