class ActiveSupport::ErrorReporter::TestHelper::ErrorSubscriber

def report(error, handled:, severity:, source:, context:)

def report(error, handled:, severity:, source:, context:)
  @events << [error, handled, severity, source, context]
end