WriterTest
extends TestCase
in package
Uses
FixtureTrait
Config Writer Test Class
Tags
Table of Contents
- testAddMissingSection() : void
- Test that we add a missing section at the end if necessary.
- testAssocArray() : void
- Test constructing text from an associative array.
- testBasicSet() : void
- Test setting a value.
- testClear() : void
- Test clearing values.
- testCommentMaintenance() : void
- Test that comments are maintained.
- testInsertEmpty() : void
- Test inserting an empty setting.
- testOutOfOrderArray() : void
- Test constructing text from a non-associative array with non-consecutive keys.
- testReadArray() : void
- Test constructing text from an array.
- testReadFile() : void
- Test reading from a file.
- testReadString() : void
- Test reading from a string.
- testSetDuplicateValue() : void
- Test setting a duplicate value.
- testStandardArray() : void
- Test constructing text from a non-associative array.
- testTabAlignment() : void
- Test alignment of values.
- 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
testAddMissingSection()
Test that we add a missing section at the end if necessary.
public
testAddMissingSection() : void
Return values
void —testAssocArray()
Test constructing text from an associative array.
public
testAssocArray() : void
Return values
void —testBasicSet()
Test setting a value.
public
testBasicSet() : void
Return values
void —testClear()
Test clearing values.
public
testClear() : void
Return values
void —testCommentMaintenance()
Test that comments are maintained.
public
testCommentMaintenance() : void
Return values
void —testInsertEmpty()
Test inserting an empty setting.
public
testInsertEmpty() : void
Return values
void —testOutOfOrderArray()
Test constructing text from a non-associative array with non-consecutive keys.
public
testOutOfOrderArray() : void
Return values
void —testReadArray()
Test constructing text from an array.
public
testReadArray() : void
Return values
void —testReadFile()
Test reading from a file.
public
testReadFile() : void
Return values
void —testReadString()
Test reading from a string.
public
testReadString() : void
Return values
void —testSetDuplicateValue()
Test setting a duplicate value.
public
testSetDuplicateValue() : void
Return values
void —testStandardArray()
Test constructing text from a non-associative array.
public
testStandardArray() : void
Return values
void —testTabAlignment()
Test alignment of values.
public
testTabAlignment() : 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.