class Mocha::Expectation

def match?(invocation, ignoring_order: false)

Other tags:
    Private: -
def match?(invocation, ignoring_order: false)
  order_independent_match = @method_matcher.match?(invocation.method_name) && @parameters_matcher.match?(invocation.arguments) && @block_matcher.match?(invocation.block)
  ignoring_order ? order_independent_match : order_independent_match && in_correct_order?
end