AbstractTestCase::getPrivateProperty PHP Method

getPrivateProperty() private static method

Privateプロパティをアクセス可能な状態で取得する
private static getPrivateProperty ( mixed $class, string $name )
$class mixed 対象のクラス名、又は、対象クラスのインスタンス
$name string メソッド名
    private static function getPrivateProperty($class, $name)
    {
        $prop = new \ReflectionProperty($class, $name);
        $prop->setAccessible(true);
        return $prop;
    }