MediaWiki  1.34.0
Scribunto_LuaUstringLibraryTest Class Reference

@covers Scribunto_LuaUstringLibrary More...

Inheritance diagram for Scribunto_LuaUstringLibraryTest:
Collaboration diagram for Scribunto_LuaUstringLibraryTest:

Public Member Functions

 provideUstringLibraryNormalizationTests ()
 
 testPCREErrors ( $ini, $args, $error)
 @dataProvider providePCREErrors More...
 
 testUstringLibraryNormalizationTests ( $name, $c1, $c2, $c3, $c4, $c5)
 @dataProvider provideUstringLibraryNormalizationTests More...
 
 testUstringLibraryNormalizationTestsAvailable ()
 
- Public Member Functions inherited from Scribunto_LuaEngineUnitTestBase
 __construct ( $name=null, array $data=[], $dataName='', $engineName=null)
 
 provideLuaData ()
 
 testLua ( $key, $testName, $expected)
 @dataProvider provideLuaData More...
 
 toString ()
 

Static Public Member Functions

static providePCREErrors ()
 
- Static Public Member Functions inherited from Scribunto_LuaEngineUnitTestBase
static suite ( $className)
 

Protected Member Functions

 getTestModules ()
 
 tearDown ()
 

Static Protected Attributes

static $moduleName = 'UstringLibraryTests'
 
- Static Protected Attributes inherited from Scribunto_LuaEngineUnitTestBase
static string $dataProviderClass = 'Scribunto_LuaDataProvider'
 Class to use for the data provider. More...
 
static string $moduleName = null
 Name of the module being tested. More...
 

Private Attributes

 $normalizationDataProvider = null
 

Additional Inherited Members

- Protected Attributes inherited from Scribunto_LuaEngineUnitTestBase
string $luaTestName = null
 Name to display instead of the default. More...
 
array $skipTests = []
 Tests to skip. More...
 

Detailed Description

@covers Scribunto_LuaUstringLibrary

Definition at line 8 of file UstringLibraryTest.php.

Member Function Documentation

◆ getTestModules()

Scribunto_LuaUstringLibraryTest::getTestModules ( )
protected

Reimplemented from Scribunto_LuaEngineUnitTestBase.

Definition at line 21 of file UstringLibraryTest.php.

◆ providePCREErrors()

static Scribunto_LuaUstringLibraryTest::providePCREErrors ( )
static

Reimplemented in Scribunto_LuaUstringLibraryPureLuaTest.

Definition at line 91 of file UstringLibraryTest.php.

◆ provideUstringLibraryNormalizationTests()

Scribunto_LuaUstringLibraryTest::provideUstringLibraryNormalizationTests ( )

Definition at line 36 of file UstringLibraryTest.php.

References $normalizationDataProvider, and getEngine().

Referenced by testUstringLibraryNormalizationTests().

◆ tearDown()

Scribunto_LuaUstringLibraryTest::tearDown ( )
protected

Reimplemented from Scribunto_LuaEngineUnitTestBase.

Definition at line 13 of file UstringLibraryTest.php.

◆ testPCREErrors()

Scribunto_LuaUstringLibraryTest::testPCREErrors (   $ini,
  $args,
  $error 
)

@dataProvider providePCREErrors

Reimplemented in Scribunto_LuaUstringLibraryPureLuaTest.

Definition at line 71 of file UstringLibraryTest.php.

References $args, and getEngine().

◆ testUstringLibraryNormalizationTests()

Scribunto_LuaUstringLibraryTest::testUstringLibraryNormalizationTests (   $name,
  $c1,
  $c2,
  $c3,
  $c4,
  $c5 
)

@dataProvider provideUstringLibraryNormalizationTests

Definition at line 47 of file UstringLibraryTest.php.

References $chars, and provideUstringLibraryNormalizationTests().

◆ testUstringLibraryNormalizationTestsAvailable()

Scribunto_LuaUstringLibraryTest::testUstringLibraryNormalizationTestsAvailable ( )

Member Data Documentation

◆ $moduleName

Scribunto_LuaUstringLibraryTest::$moduleName = 'UstringLibraryTests'
staticprotected

Definition at line 9 of file UstringLibraryTest.php.

◆ $normalizationDataProvider

Scribunto_LuaUstringLibraryTest::$normalizationDataProvider = null
private

Definition at line 11 of file UstringLibraryTest.php.

Referenced by provideUstringLibraryNormalizationTests().


The documentation for this class was generated from the following file: