ExtendedIniNormalizerTest
extends TestCase
in package
Uses
FixtureTrait
ExtendedIniNormalizer Test Class
Tags
Table of Contents
- escapingProvider() : array<string|int, mixed>
- Data provider for testEscaping
- testEscaping() : void
- Test escaping.
- testKeyNormalization() : void
- Test key normalization.
- testLanguageFileCheck() : void
- Test bypassing of non-language-files.
- testLanguageFileIntegrity() : void
- Test consistent normalization of translation files on disk. This tests not only the functionality of ExtendedIniNormalizer but also the integrity of the language files themselves.
- testLanguageFileSectionCheck() : void
- Test bypassing of files with sections.
- checkDirectory() : void
- Test language integrity inside a directory.
- getFixture() : string
- Load a fixture file.
- getFixtureDir() : string
- Get the base directory containing fixtures.
- getFixturePath() : string
- Resolve fixture path.
- getJsonFixture() : array<string|int, mixed>
- Load a JSON fixture from file (using associative array return type).
Methods
escapingProvider()
Data provider for testEscaping
public
static escapingProvider() : array<string|int, mixed>
Return values
array<string|int, mixed> —testEscaping()
Test escaping.
public
testEscaping(string $value) : void
Parameters
- $value : string
-
Value to test
Tags
Return values
void —testKeyNormalization()
Test key normalization.
public
testKeyNormalization() : void
Return values
void —testLanguageFileCheck()
Test bypassing of non-language-files.
public
testLanguageFileCheck() : void
Return values
void —testLanguageFileIntegrity()
Test consistent normalization of translation files on disk. This tests not only the functionality of ExtendedIniNormalizer but also the integrity of the language files themselves.
public
testLanguageFileIntegrity() : void
Return values
void —testLanguageFileSectionCheck()
Test bypassing of files with sections.
public
testLanguageFileSectionCheck() : void
Return values
void —checkDirectory()
Test language integrity inside a directory.
protected
checkDirectory(ExtendedIniNormalizer $normalizer, string $dir) : void
Parameters
- $normalizer : ExtendedIniNormalizer
-
Normalizer to test
- $dir : string
-
Directory name.
Return values
void —getFixture()
Load a fixture file.
protected
getFixture(string $filename[, string $module = 'VuFind' ]) : string
Parameters
- $filename : string
-
Filename relative to fixture directory.
- $module : string = 'VuFind'
-
Module containing fixture.
Tags
Return values
string —getFixtureDir()
Get the base directory containing fixtures.
protected
getFixtureDir([string $module = 'VuFind' ]) : string
Parameters
- $module : string = 'VuFind'
-
Module containing fixture.
Return values
string —getFixturePath()
Resolve fixture path.
protected
getFixturePath(string $filename[, string $module = 'VuFind' ]) : string
Parameters
- $filename : string
-
Filename relative to fixture directory.
- $module : string = 'VuFind'
-
Module containing fixture.
Tags
Return values
string —getJsonFixture()
Load a JSON fixture from file (using associative array return type).
protected
getJsonFixture(string $filename[, string $module = 'VuFind' ]) : array<string|int, mixed>
Parameters
- $filename : string
-
Filename relative to fixture directory.
- $module : string = 'VuFind'
-
Module containing fixture.