Aristotle said this quote

Humour is the only test of gravity and gravity of humour for a subject which will not bear raillery is suspicious and a jest which will not bear serious examination is false wit.