Skip to content

Commit e41a23d

Browse files
committed
Skip case folding regression test on older PHP versions
1 parent 6dec8c9 commit e41a23d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/functional/CMarkRegressionTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ public static function dataProvider(): \Generator
3333
$example['output'] = \str_replace('</script></li>', "</script>\n</li>", $example['output']);
3434
}
3535

36+
// The case-fold test from example 21 fails on PHP 8.0.* and below due to the behavior of mb_convert_case().
37+
// See https://3v4l.org/7TeXJ.
38+
if (\PHP_VERSION_ID < 81000 && $example['number'] === 21) {
39+
continue;
40+
}
41+
3642
yield $example;
3743
}
3844
}

0 commit comments

Comments
 (0)