Skip PHP 5.3+ tests when testing with PHP 5.2

Some tests in ClassFileLocatorTest and a test in LocaleTest won't work with PHP 5.2, so we should skip them to ensure that Travis passes.