PluginManagerTest
extends TestCase
in package
Uses
ReflectionTrait
Resolver\Driver Plugin Manager Test Class
Tags
Table of Contents
- testExpectedInterface() : void
- Test expected interface.
- testShareByDefault() : void
- Test results.
- 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
testExpectedInterface()
Test expected interface.
public
testExpectedInterface() : void
Return values
void —testShareByDefault()
Test results.
public
testShareByDefault() : 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