class RSpec::Mocks::AnyInstance::StubChain

def invocation_order

def invocation_order
  @invocation_order ||= {
    :with => [nil],
    :and_return => [:with, nil],
    :and_raise => [:with, nil],
    :and_yield => [:with, nil],
    :and_call_original => [:with, nil]
  }
end