mediawiki-extensions-Scribunto/tests/phpunit/Engines/LuaCommon/LuaCommonTestsLibrary.php

23 lines
475 B
PHP
Raw Normal View History

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