mediawiki-extensions-Scribunto/tests/phpunit/Engines/LuaCommon/LuaCommonTestsLibrary.php
Reedy 1eecdac6de Capitalise Engines folder
Change-Id: I6d730d67decc859fd130fee5ec92b1cfb8d9ef64
2022-09-30 00:58:27 +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' ];
}
}