AbstractTestCase::getPropertyValue PHP Method

getPropertyValue() public static method

Privateプロパティを取得する
public static getPropertyValue ( object $object, string $name ) : mixed
$object object 対象オブジェクト
$name string プロパティ名
return mixed プロパティの値
    public static function getPropertyValue($object, $name)
    {
        $prop = self::getPrivateProperty($object, $name);
        return $prop->getValue($object);
    }