Add protection classes to PHP function regex.

If people are using 'public', 'private', or 'protected' on their PHP function
names, our interesting lines regex wouldn't find them. This change adds them to
the regex and includes a test.

Testing done: Ran unit tests.

Fixes bug 2951.

Reviewed at https://reviews.reviewboard.org/r/5359/