module Mocha::ParameterMatchers

def optionally(*matchers)

Other tags:
    Example: One of the actual optional parameters does not match the expected value. -
    Example: Both required parameters and both of the optional parameters are supplied and they all match their expected value. -
    Example: Both required parameters and one of the optional parameters are supplied and they all match their expected value. -
    Example: Only the two required parameters are supplied and they both match their expected value. -

Other tags:
    See: Expectation#with -

Returns:
  • (Optionally) - parameter matcher.

Parameters:
  • matchers (*Array) -- matchers for optional parameters.
def optionally(*matchers)
  Optionally.new(*matchers)
end