mediawiki-extensions-Scribunto/tests/engines/LuaStandalone/StandaloneTest.php
Brad Jorsch 337abb295f Make Lua engine tests modular
Rework the LuaEngine tests to be entirely modular, so that every library
need not add itself to one monolithic file. This also allows other
extensions that add Lua modules to make unit tests without having to
somehow inject them into a test class owned by Scribunto.

The approach taken is similar to that used for Selenium for running
tests against multiple browsers.

Change-Id: I294b2a8195759c0e4fa211f879305a8eb66d9c9a
2013-02-06 09:10:57 -05:00

16 lines
379 B
PHP

<?php
class Scribunto_LuaStandaloneTests extends Scribunto_LuaEngineTestBase {
protected static $moduleName = 'StandaloneTests';
public static function suite( $className ) {
return self::makeSuite( $className, 'LuaStandalone' );
}
function getTestModules() {
return parent::getTestModules() + array(
'StandaloneTests' => __DIR__ . '/StandaloneTests.lua',
);
}
}