Added test for issue #4989
Find traits with TokenArrayScanner

Added T_TRAIT next to T_CLASS and T_INTERFACE.

For php 5.3 T_TRAIT gets defined to not get any errors.