mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-30 02:54:26 +00:00
337abb295f
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
16 lines
379 B
PHP
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',
|
|
);
|
|
}
|
|
}
|