mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-22 04:43:48 +00:00
073a365759
Revert "Revert "Namespace LuaCommon""
This reverts commit 18d122b60d
.
Change-Id: I74fd43f7920c8772e9078f745ac6062d5461a7f1
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' ];
|
|
}
|
|
}
|