[Debug] enhance non-PSR-0 compatibility for case mismatch test