I was debugging a PHP error for 30 minutes that was caused by a Cyrillic character in one of the method names. I had assertЕquals
and it should have been assertEquals
. Easy error to spot, right. I kept getting this error:
Error: Call to undefined method EmailTest::assertЕquals()
Why? Because the letter E
turned out to be Cyrillic and the actual method uses the Latin letter.
Proposal
It would be very awesome if Sublime can highlight invalid characters in red so you can know that something’s off. I can agree that errors like that occur rarely but when they do, they’re a pain in the A.