MediaWiki
1.34.0
UstringLibraryPureLuaTest.php
Go to the documentation of this file.
1
<?php
2
3
require_once __DIR__ .
'/UstringLibraryTest.php'
;
4
8
class
Scribunto_LuaUstringLibraryPureLuaTest
extends
Scribunto_LuaUstringLibraryTest
{
9
protected
function
setUp
() {
10
parent::setUp();
11
12
// Override mw.ustring with the pure-Lua version
13
$interpreter = $this->
getEngine
()->getInterpreter();
14
$interpreter->callFunction(
15
$interpreter->loadString(
'
16
local ustring = require( "ustring" )
17
ustring.maxStringLength = mw.ustring.maxStringLength
18
ustring.maxPatternLength = mw.ustring.maxPatternLength
19
mw.ustring = ustring
20
'
,
'fortest'
)
21
);
22
}
23
27
public
function
testPCREErrors
( $ini,
$args
, $error ) {
28
// Not applicable
29
$this->assertTrue(
true
);
30
}
31
32
public
static
function
providePCREErrors
() {
33
return
[
34
[ [], [], null ],
35
];
36
}
37
}
Scribunto_LuaUstringLibraryPureLuaTest\testPCREErrors
testPCREErrors( $ini, $args, $error)
@dataProvider providePCREErrors
Definition:
UstringLibraryPureLuaTest.php:27
Scribunto_LuaUstringLibraryPureLuaTest\setUp
setUp()
Definition:
UstringLibraryPureLuaTest.php:9
Scribunto_LuaUstringLibraryTest
@covers Scribunto_LuaUstringLibrary
Definition:
UstringLibraryTest.php:8
Scribunto_LuaUstringLibraryPureLuaTest\providePCREErrors
static providePCREErrors()
Definition:
UstringLibraryPureLuaTest.php:32
Scribunto_LuaUstringLibraryPureLuaTest
@coversNothing – Covers Lua code
Definition:
UstringLibraryPureLuaTest.php:8
$args
if( $line===false) $args
Definition:
cdb.php:64
getEngine
getEngine()
Definition:
LuaEngineTestHelper.php:109
extensions
Scribunto
tests
phpunit
engines
LuaCommon
UstringLibraryPureLuaTest.php
Generated on Thu Dec 19 2019 14:53:58 for MediaWiki by
1.8.16