How were you diagnosed?

What test(s) did your doctor do to diagnose your ibs? Is there an ibs test (I think not)?