NormalizeCommandTest
extends TestCase
in package
Uses
FixtureTrait
Language/Normalize command test.
Tags
Table of Contents
- $languageFixtureDir : string
- Language fixture directory
- setUp() : void
- Standard setup method.
- testNormalizingDirectory() : void
- Test normalizing a directory.
- testNormalizingDirectoryWithBadFilter() : void
- Test normalizing a directory.
- testNormalizingFile() : void
- Test normalizing a file.
- testNormalizingNonExistentFile() : void
- Test an attempt to normalize a file that does not exist.
- testNormalizingNonLanguageFile() : void
- Test an attempt to normalize a file that contains bad content.
- testWithoutParameters() : void
- Test that missing parameters yield an error message.
- 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).
- getMockNormalizer() : ExtendedIniNormalizer
- Get a mock normalizer object
- getMockReader() : ExtendedIniReader
- Get a mock reader object
Properties
$languageFixtureDir
Language fixture directory
protected
string
$languageFixtureDir
= null
Methods
setUp()
Standard setup method.
public
setUp() : void
Return values
void —testNormalizingDirectory()
Test normalizing a directory.
public
testNormalizingDirectory() : void
Return values
void —testNormalizingDirectoryWithBadFilter()
Test normalizing a directory.
public
testNormalizingDirectoryWithBadFilter() : void
Return values
void —testNormalizingFile()
Test normalizing a file.
public
testNormalizingFile() : void
Return values
void —testNormalizingNonExistentFile()
Test an attempt to normalize a file that does not exist.
public
testNormalizingNonExistentFile() : void
Return values
void —testNormalizingNonLanguageFile()
Test an attempt to normalize a file that contains bad content.
public
testNormalizingNonLanguageFile() : void
Return values
void —testWithoutParameters()
Test that missing parameters yield an error message.
public
testWithoutParameters() : void
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.
Return values
array<string|int, mixed> —getMockNormalizer()
Get a mock normalizer object
protected
getMockNormalizer([array<string|int, mixed> $methods = [] ]) : ExtendedIniNormalizer
Parameters
- $methods : array<string|int, mixed> = []
-
Methods to mock
Return values
ExtendedIniNormalizer —getMockReader()
Get a mock reader object
protected
getMockReader([array<string|int, mixed> $methods = [] ]) : ExtendedIniReader
Parameters
- $methods : array<string|int, mixed> = []
-
Methods to mock