mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-12 08:25:10 +00:00
62e1fb0b5f
Change-Id: Ib6e912e71fb797942aca4b4f22eb0ff9e005a662
21 lines
409 B
PHP
21 lines
409 B
PHP
<?php
|
|
|
|
use MediaWiki\Extension\Scribunto\Engines\LuaCommon\LibraryBase;
|
|
|
|
class LuaCommonTestsLibrary extends LibraryBase {
|
|
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' ];
|
|
}
|
|
}
|