SierraRestTest
extends ILSDriverTestCase
in package
Uses
ReflectionTrait
SierraRest ILS driver test
Tags
Table of Contents
- $bibIds : array<string|int, mixed>
- Test bib IDs (raw value => formatted value)
- $driver : AbstractBase
- ILS driver
- setUp() : void
- Standard setup method.
- testDefaultBibFormatting() : void
- Test default ID formatting (no prefixing).
- testIdExtraction() : void
- Test ID extraction.
- testMissingConfiguration() : void
- Test that driver complains about missing configuration.
- testPrefixedBibFormatting() : void
- Test default ID formatting (no prefixing).
- callMethod() : mixed
- Call protected or private method for side-effect and result.
- getProperty() : mixed
- Return protected or private property.
- setProperty() : void
- Set protected or private property.
Properties
$bibIds
Test bib IDs (raw value => formatted value)
protected
array<string|int, mixed>
$bibIds
= ['12345' => '.b123456', '23456' => '.b234564', '34567' => '.b345672', '45678' => '.b456780', '56789' => '.b567899', '191456' => '.b191456x']
$driver
ILS driver
protected
AbstractBase
$driver
Methods
setUp()
Standard setup method.
public
setUp() : void
Return values
void —testDefaultBibFormatting()
Test default ID formatting (no prefixing).
public
testDefaultBibFormatting() : void
Return values
void —testIdExtraction()
Test ID extraction.
public
testIdExtraction() : void
Return values
void —testMissingConfiguration()
Test that driver complains about missing configuration.
public
testMissingConfiguration() : void
Return values
void —testPrefixedBibFormatting()
Test default ID formatting (no prefixing).
public
testPrefixedBibFormatting() : void
Return values
void —callMethod()
Call protected or private method for side-effect and result.
protected
callMethod(object|string $object, string $method[, array<string|int, mixed> $arguments = [] ]) : mixed
Uses PHP's reflection API in order to modify method accessibility.
Parameters
- $object : object|string
-
Object or class name
- $method : string
-
Method name
- $arguments : array<string|int, mixed> = []
-
Method arguments
Tags
Return values
mixed —getProperty()
Return protected or private property.
protected
getProperty(object|string $object, string $property) : mixed
Uses PHP's reflection API in order to modify property accessibility.
Parameters
- $object : object|string
-
Object or class name
- $property : string
-
Property name
Tags
Return values
mixed —setProperty()
Set protected or private property.
protected
setProperty(object|string $object, string $property, mixed $value) : void
Uses PHP's reflection API in order to modify property accessibility.
Parameters
- $object : object|string
-
Object or class name
- $property : string
-
Property name
- $value : mixed
-
Property value