VuFind API Documentation

AlephTest extends ILSDriverTestCase
in package
Uses FixtureTrait

Aleph ILS driver test

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

author

Josef Moravec moravec@mzk.cz

license

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

link

Main Page

Table of Contents

$driver  : AbstractBase
ILS driver
setUp()  : void
Standard setup method.
testGetMyFines()  : void
Test the getMyFines() method
testMissingConfiguration()  : void
Test that driver complains about missing configuration.
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).
loadResponse()  : Response
Load response from file
mockResponse()  : void
Mock fixture as HTTP client response

Properties

Methods

setUp()

Standard setup method.

public setUp() : void
Return values
void

testGetMyFines()

Test the getMyFines() method

public testGetMyFines() : void
Return values
void

testMissingConfiguration()

Test that driver complains about missing configuration.

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

loadResponse()

Load response from file

protected loadResponse(string $filename) : Response
Parameters
$filename : string

File name of raw HTTP response

Tags
throws
InvalidArgumentException

Fixture file could not be loaded as HTTP response

throws
RuntimeException

Fixture file does not exist

Return values
Response

Response object

mockResponse()

Mock fixture as HTTP client response

protected mockResponse([string|array<string|int, mixed>|null $fixture = null ]) : void
Parameters
$fixture : string|array<string|int, mixed>|null = null

Fixture file

Tags
throws
InvalidArgumentException

Fixture file could not be loaded as HTTP response

throws
RuntimeException

Fixture file does not exist

Return values
void

Search results