mediawiki-extensions-Scribunto/tests/engines/LuaCommon/TextLibraryTest.php

24 lines
562 B
PHP
Raw Normal View History

<?php
class Scribunto_LuaTextLibraryTests extends Scribunto_LuaEngineTestBase {
protected static $moduleName = 'TextLibraryTests';
function setUp() {
parent::setUp();
// For unstrip test
$interpreter = $this->getEngine()->getInterpreter();
$interpreter->callFunction(
$interpreter->loadString( 'mw.text.stripTest = ...', 'fortest' ),
$this->getEngine()->getParser()->insertStripItem( 'ok' )
);
}
function getTestModules() {
return parent::getTestModules() + array(
'TextLibraryTests' => __DIR__ . '/TextLibraryTests.lua',
);
}
}