CloudConvert\tests\ApiTest::getPrivateMethod PHP Method

getPrivateMethod() protected static method

Get private and protected method to unit test it
protected static getPrivateMethod ( $name )
    protected static function getPrivateMethod($name)
    {
        $class = new \ReflectionClass('CloudConvert\\Api');
        $method = $class->getMethod($name);
        $method->setAccessible(true);
        return $method;
    }