mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-26 17:20:07 +00:00
24 lines
562 B
PHP
24 lines
562 B
PHP
|
<?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',
|
||
|
);
|
||
|
}
|
||
|
}
|