TestReflection::setValue
Helper method that sets a protected or private property in a class by relfection.
Signature
Parameters
-
$object
- The object for which to set the property.
-
$propertyName
- The name of the property to set.
-
$value
- The value to set for the property.
Returns
- void