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.
Fix tests for php <5.4
Merge pull request #4989 from Danez/patch-1

[Zend-Code] Find php 5.4 traits with TokenArrayScanner
Merge branch 'feature/4989' into develop

Close #4989