MediaWiki  1.34.0
Scribunto_LuaInterpreterTest Class Reference
Inheritance diagram for Scribunto_LuaInterpreterTest:
Collaboration diagram for Scribunto_LuaInterpreterTest:

Public Member Functions

 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 ()
 

Protected Member Functions

 getBusyLoop ( $interpreter)
 
 newInterpreter ( $opts=[])
 
 setUp ()
 

Private Member Functions

 normalizeOrder ( $a)
 

Detailed Description

Definition at line 3 of file LuaInterpreterTest.php.

Member Function Documentation

◆ getBusyLoop()

Scribunto_LuaInterpreterTest::getBusyLoop (   $interpreter)
protected

◆ newInterpreter()

◆ normalizeOrder()

Scribunto_LuaInterpreterTest::normalizeOrder (   $a)
private

Definition at line 84 of file LuaInterpreterTest.php.

Referenced by testDoubleRoundtrip(), and testRoundtrip().

◆ passthru()

Scribunto_LuaInterpreterTest::passthru ( )

Definition at line 94 of file LuaInterpreterTest.php.

References $args.

◆ provideRoundtrip()

Scribunto_LuaInterpreterTest::provideRoundtrip ( )

Definition at line 99 of file LuaInterpreterTest.php.

References true.

◆ setUp()

Scribunto_LuaInterpreterTest::setUp ( )
protected

Definition at line 12 of file LuaInterpreterTest.php.

References newInterpreter().

◆ testDoubleRoundtrip()

Scribunto_LuaInterpreterTest::testDoubleRoundtrip ( )

@dataProvider provideRoundtrip

Definition at line 48 of file LuaInterpreterTest.php.

References $args, newInterpreter(), and normalizeOrder().

◆ testRegisterInterfaceWithSameName()

Scribunto_LuaInterpreterTest::testRegisterInterfaceWithSameName ( )

Definition at line 174 of file LuaInterpreterTest.php.

References newInterpreter().

◆ testRoundtrip()

Scribunto_LuaInterpreterTest::testRoundtrip ( )

@dataProvider provideRoundtrip

Definition at line 37 of file LuaInterpreterTest.php.

References $args, newInterpreter(), and normalizeOrder().

◆ testRoundtripNAN()

Scribunto_LuaInterpreterTest::testRoundtripNAN ( )

This cannot be done in testRoundtrip and testDoubleRoundtrip, because assertSame( NAN, NAN ) returns false.

Definition at line 69 of file LuaInterpreterTest.php.

References newInterpreter().

◆ testTestMemoryLimit()

Scribunto_LuaInterpreterTest::testTestMemoryLimit ( )

Definition at line 139 of file LuaInterpreterTest.php.

References newInterpreter().

◆ testTimeLimit()

Scribunto_LuaInterpreterTest::testTimeLimit ( )

Definition at line 120 of file LuaInterpreterTest.php.

References getBusyLoop(), and newInterpreter().

◆ testWrapPHPFunction()

Scribunto_LuaInterpreterTest::testWrapPHPFunction ( )

Definition at line 157 of file LuaInterpreterTest.php.

References $res, and newInterpreter().


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