[core] Renamed the method Resource#isPHPSource() to isPHPFile().
[core] Made minor improvements to the Resource class.
[core] Made minor improvements to the PHPType class.
[core] Renamed the method PHPSourceModule#isTest() to hasRunnableTestTypes().