TestUtils
class TestUtils (View source)
Methods
static mixed
invokeMethod(string $methodName, array $parameters = [])
Call protected/private non-static method of an object.
static mixed
invokeStaticMethod(string $className, string $methodName, array $parameters = [])
Call protected/private static method of a class.
static mixed
setProperty(string $propertyName, mixed $value)
Set protected/private non-static property of an object.
static mixed
getProperty(string $propertyName)
Get protected/private non-static property of an object.
static mixed
setStaticProperty(object $className, string $propertyName, mixed $value)
Set protected/private static property of a class.
static mixed
getStaticProperty(object $className, string $propertyName)
Get protected/private static property of a class.
Details
at line 33
static mixed
invokeMethod(string $methodName, array $parameters = [])
Call protected/private non-static method of an object.
at line 52
static mixed
invokeStaticMethod(string $className, string $methodName, array $parameters = [])
Call protected/private static method of a class.
at line 71
static mixed
setProperty(string $propertyName, mixed $value)
Set protected/private non-static property of an object.
at line 90
static mixed
getProperty(string $propertyName)
Get protected/private non-static property of an object.
at line 107
static mixed
setStaticProperty(object $className, string $propertyName, mixed $value)
Set protected/private static property of a class.
at line 126
static mixed
getStaticProperty(object $className, string $propertyName)
Get protected/private static property of a class.