AbstractTestCase::getPrivateMethod PHP Method

getPrivateMethod() private static method

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