VuFind API Documentation

ExtendedIniTest extends TestCase
in package
Uses FixtureTrait

ExtendedIni translation loader Test Class

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

author

Chris Hallberg challber@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

testAliasing()  : void
Test alias behavior.
testCircularAliasSafety()  : void
Test circular alias infinite loop prevention.
testDisabledAliasing()  : void
Test that alias behavior can be disabled.
testFallback()  : void
Test fallback to a different language.
testFallbackToSelf()  : void
Test fallback to the same language.
testInheritedAliasing()  : void
Test inheriting aliases from a parent file.
testMissingPathStack()  : void
Test missing path stack.
testParentChain()  : void
Test file with a chain of parents.
testSelfAsParent()  : void
Test file with self as parent.
testTranslations()  : void
Test translations.
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

testAliasing()

Test alias behavior.

public testAliasing() : void
Return values
void

testCircularAliasSafety()

Test circular alias infinite loop prevention.

public testCircularAliasSafety() : void
Return values
void

testDisabledAliasing()

Test that alias behavior can be disabled.

public testDisabledAliasing() : void
Return values
void

testFallback()

Test fallback to a different language.

public testFallback() : void
Return values
void

testFallbackToSelf()

Test fallback to the same language.

public testFallbackToSelf() : void
Return values
void

testInheritedAliasing()

Test inheriting aliases from a parent file.

public testInheritedAliasing() : void
Return values
void

testMissingPathStack()

Test missing path stack.

public testMissingPathStack() : void
Return values
void

testParentChain()

Test file with a chain of parents.

public testParentChain() : void
Return values
void

testSelfAsParent()

Test file with self as parent.

public testSelfAsParent() : void
Return values
void

testTranslations()

Test translations.

public testTranslations() : 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
throws
RuntimeException
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
throws
RuntimeException
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>

Search results