VuFind API Documentation

CsvReaderTest extends TestCase
in package
Uses FixtureTrait

Course Reserves CSV Loader Test Class

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

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

link

Wiki

Table of Contents

testEmptyFile()  : void
Test loading an empty file.
testGetCourses()  : void
Test getCourses()
testGetDepartments()  : void
Test getDepartments()
testGetErrors()  : void
Test getErrors()
testGetInstructors()  : void
Test getInstructors()
testGetReserves()  : void
Test getReserves()
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).
getReader()  : CsvReader
Get a reader object with the fixture loaded.

Methods

testEmptyFile()

Test loading an empty file.

public testEmptyFile() : void
Return values
void

testGetCourses()

Test getCourses()

public testGetCourses() : void
Return values
void

testGetDepartments()

Test getDepartments()

public testGetDepartments() : void
Return values
void

testGetErrors()

Test getErrors()

public testGetErrors() : void
Return values
void

testGetInstructors()

Test getInstructors()

public testGetInstructors() : void
Return values
void

testGetReserves()

Test getReserves()

public testGetReserves() : 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>

getReader()

Get a reader object with the fixture loaded.

protected getReader([string $fixture = 'reserves.csv' ]) : CsvReader
Parameters
$fixture : string = 'reserves.csv'

Name of file to load

Return values
CsvReader

Search results