VuFind API Documentation

BackendManagerTest extends TestCase
in package
Uses ReflectionTrait

BackendManager unit tests.

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

testAttachDetachShared()  : void
Test attaching to and detaching from shared event manager.
testGetThrowsOnNonBackend()  : void
Test that get() throws on a non-backend.
testGetThrowsOnNonObject()  : void
Test that get() throws on a non-object.
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.

Methods

testAttachDetachShared()

Test attaching to and detaching from shared event manager.

public testAttachDetachShared() : void
Return values
void

testGetThrowsOnNonBackend()

Test that get() throws on a non-backend.

public testGetThrowsOnNonBackend() : void
Return values
void

testGetThrowsOnNonObject()

Test that get() throws on a non-object.

public testGetThrowsOnNonObject() : 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
throws
ReflectionException

Method does not exist

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
throws
ReflectionException

Property does not exist

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

Tags
throws
ReflectionException

Property does not exist

Return values
void

Search results