Skip to content

Commit

Permalink
Skip GMT+n timezone test cases on PHP 8.1.14 and 8.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Jan 22, 2023
1 parent 5f58f29 commit 5c59868
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/VObject/TimeZoneUtilTest.php
Expand Up @@ -181,6 +181,17 @@ public function testTimeZoneIdentifiers($tzid)
*/
public function testTimeZoneBCIdentifiers($tzid)
{
/*
* A regression was introduced in PHP 8.1.14 and 8.2.1
* Timezone ids containing a "+" like "GMT+10" do not work.
* See https://github.com/php/php-src/issues/10218
* The regression should be fixed in the next patch releases of PHP
* that should be released in Feb 2023.
*/
$versionOfPHP = \phpversion();
if ((('8.1.14' == $versionOfPHP) || ('8.2.1' == $versionOfPHP)) && \str_contains($tzid, '+')) {
$this->markTestSkipped("Timezone ids containing '+' do not work on PHP $versionOfPHP");
}
$tz = TimeZoneUtil::getTimeZone($tzid);
$ex = new \DateTimeZone($tzid);

Expand Down

0 comments on commit 5c59868

Please sign in to comment.