Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-76675 date: Only test all TZ names with PHPUNIT_LONGTEST enabled
It happens often that some timezone is renamed, split, added to the IANAs list of timezones (that, for PHP is kept updated by the php-timezonedb PECL extension). When the information coming from the extension changes, all the PHPUnit jobs in the world start failing (that's when CIs update their PHP images, when devs update their packages, ...). So, what we are doing here is to move that test that check for every single string existing to be run only when PHPUNIT_LONGTEST is enabled. That way only places running all tests will run that one. And every other run just will skip it. This corresponds to point 1 & 2 of the issue, lower impact in general and, still be able to enable the tests to run.
- Loading branch information