mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-23 13:23:15 +00:00
408f4d0bc6
Change-Id: I4977bf534400643f83ab3400c3dfd736c53f9705
23 lines
475 B
PHP
23 lines
475 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\Scribunto\Tests\Engines\LuaCommon;
|
|
|
|
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' ];
|
|
}
|
|
}
|