src/Leevel/Validate/Assert.php
protected static function validateRule(string $method, array $multi): bool
    {
        try {
            $fn = __NAMESPACE__.'\\Helper\\validate_'.un_camelize($method);

            foreach ($multi as $m) {
                if (!function_exists($fn)) {
                    class_exists($fn);
                }

                if (false === $fn(...$m)) {
                    return false;
                }

                self::countPhpUnit();
            }
        } catch (FunctionNotFoundException $th) {
            $e = sprintf('Method `%s` is not exits.', $method);

            throw new BadMethodCallException($e);
        }

        return true;
    }
protected static function validateRule(string $method, array $multi): bool
    {
        try {
            $fn = __NAMESPACE__.'\\Helper\\validate_'.un_camelize($method);

            foreach ($multi as $m) {
                if (!function_exists($fn)) {
                    class_exists($fn);
                }

                if (false === $fn(...$m)) {
                    return false;
                }

                self::countPhpUnit();
            }
        } catch (FunctionNotFoundException $th) {
            $e = sprintf('Method `%s` is not exits.', $method);

            throw new BadMethodCallException($e);
        }

        return true;
    }
校验规则.

@param string $method
@param array  $multi

@return bool