test: implement static funcions and catch blocks

Allow the php source analyzer scan for $this in static functions as well as
properly handle the exception variable inside catch blocks.
test: Add stubs for DateTime classes
Merge pull request #205 from greezybacon/issue/variable-analyzer

test: implement static functions and catch blocks

Reviewed-By: Peter Rotich <peter@osticket.com>