KamranAhmed\Smasher\ScannerTest::callProtectedMethod PHP Method

callProtectedMethod() public static method

public static callProtectedMethod ( $object, $method, array $args = [] )
$args array
    public static function callProtectedMethod($object, $method, array $args = [])
    {
        $class = new ReflectionClass(get_class($object));
        $method = $class->getMethod($method);
        $method->setAccessible(true);
        return $method->invokeArgs($object, $args);
    }