mediawiki-extensions-Scribunto/tests/phpunit/engines/LuaCommon/LuaCommonTestsLibrary.php
Reedy 62e1fb0b5f Namespace LuaCommon
Change-Id: Ib6e912e71fb797942aca4b4f22eb0ff9e005a662
2022-08-03 06:03:57 +00:00

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' ];
}
}