def _get_statusline(params):
    """Generate a mock statusline like rspec would output."""
    total = sum(params.values())
    statusline = 'Finished in 0.001s seconds\n'

    passed = params.get('passed', 0)
    failed = params.get('failed', 0)
    error = params.get('error', 0)

    total = passed + failed + error
    total_failed = failed + error
    statusline += '{0} examples, {1} failures'.format(total, total_failed)
    return statusline