SebastiaanLuca\Router\Tests\TestCase::setValueOfInternalProperty PHP Method

setValueOfInternalProperty() protected method

Set the value of a private or protected class property.
protected setValueOfInternalProperty ( object $instance, string $property, mixed $value ) : ReflectionProperty
$instance object
$property string
$value mixed
return ReflectionProperty
    protected function setValueOfInternalProperty($instance, $property, $value)
    {
        $property = $this->enablePublicAccessOfProperty($instance, $property);
        $property->setValue($instance, $value);
        return $property;
    }