Skip to content

Commit

Permalink
Skip case folding regression test on older PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Aug 16, 2024
1 parent 6dec8c9 commit e41a23d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/functional/CMarkRegressionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ public static function dataProvider(): \Generator
$example['output'] = \str_replace('</script></li>', "</script>\n</li>", $example['output']);
}

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

yield $example;
}
}
Expand Down

0 comments on commit e41a23d

Please sign in to comment.