TestReflection::getValue
Helper method that gets a protected or private property in a class by relfection.
Signature
Parameters
-
$object
- The object from which to return the property value.
-
$propertyName
- The name of the property to return.
Returns
- mixed
- The value of the property.
Errors/Exceptions
-
InvalidArgumentException
- if property not available.