mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-29 02:24:19 +00:00
26 lines
598 B
PHP
26 lines
598 B
PHP
|
<?php
|
||
|
|
||
|
if ( php_sapi_name() !== 'cli' ) exit;
|
||
|
require_once( dirname( __FILE__ ) .'/../LuaCommon/LuaEngineTest.php' );
|
||
|
|
||
|
class Scribunto_LuaStandaloneEngineTest extends Scribunto_LuaEngineTest {
|
||
|
var $stdOpts = array(
|
||
|
'errorFile' => null,
|
||
|
'luaPath' => null,
|
||
|
'memoryLimit' => 50000000,
|
||
|
'cpuLimit' => 30,
|
||
|
);
|
||
|
|
||
|
function newEngine( $opts = array() ) {
|
||
|
$opts = $opts + $this->stdOpts;
|
||
|
return new Scribunto_LuaStandaloneEngine( $opts );
|
||
|
}
|
||
|
|
||
|
function getTestModules() {
|
||
|
return parent::getTestModules() + array(
|
||
|
'StandloneTests' => dirname( __FILE__ ) . '/StandaloneTests.lua'
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|