Skip to content

Commit 193aef2

Browse files
bug #38971 [PhpUnitBridge] fix replaying skipped tests (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [PhpUnitBridge] fix replaying skipped tests | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Spotted while working on symfony/polyfill#310 See also https://3v4l.org/D6Gro for the newly skipped tests in symfony/intl Commits ------- 849d1b3845 [PhpUnitBridge] fix replaying skipped tests
2 parents a50139d + 3c9b886 commit 193aef2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Tests/DateFormatter/Verification/IntlDateFormatterTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ protected function setUp(): void
3030
parent::setUp();
3131
}
3232

33+
/**
34+
* @dataProvider formatProvider
35+
*/
36+
public function testFormat($pattern, $timestamp, $expected)
37+
{
38+
if (\PHP_VERSION_ID < 70105 && $timestamp instanceof \DateTimeImmutable) {
39+
$this->markTestSkipped('PHP >= 7.1.5 required for DateTimeImmutable.');
40+
}
41+
42+
parent::testFormat($pattern, $timestamp, $expected);
43+
}
44+
3345
/**
3446
* @dataProvider formatTimezoneProvider
3547
*/

0 commit comments

Comments
 (0)