mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-23 21:32:59 +00:00
9c6f6f905a
Move autoload entries for test to TestAutoloadClasses key Change-Id: Ie705db0e7225600b7b498cfa134733a65f1ae1c9
19 lines
366 B
PHP
19 lines
366 B
PHP
<?php
|
|
|
|
class Scribunto_LuaCommonTestsLibrary extends Scribunto_LuaLibraryBase {
|
|
public function register() {
|
|
$lib = [
|
|
'test' => [ $this, 'test' ],
|
|
];
|
|
$opts = [
|
|
'test' => 'Test option',
|
|
];
|
|
|
|
return $this->getEngine()->registerInterface( __DIR__ . '/CommonTests-lib.lua', $lib, $opts );
|
|
}
|
|
|
|
public function test() {
|
|
return [ 'Test function' ];
|
|
}
|
|
}
|