Skip to content

Commit 2fc515e

Browse files
committed
fix AsciiSlugger tests if transliterator_transliterate() isn't present
1 parent bfe8f8f commit 2fc515e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Slugger/AsciiSluggerTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public function provideSlugTests(): iterable
3232
yield ['a', 'ä', '-', 'fr'];
3333
yield ['ae', 'ä', '-', 'de'];
3434
yield ['ae', 'ä', '-', 'de_fr']; // Ensure we get the parent locale
35-
yield ['g', 'ғ', '-'];
36-
yield ['gh', 'ғ', '-', 'uz'];
37-
yield ['gh', 'ғ', '-', 'uz_fr']; // Ensure we get the parent locale
35+
yield [\function_exists('transliterator_transliterate') ? 'g' : '', 'ғ', '-'];
36+
yield [\function_exists('transliterator_transliterate') ? 'gh' : '', 'ғ', '-', 'uz'];
37+
yield [\function_exists('transliterator_transliterate') ? 'gh' : '', 'ғ', '-', 'uz_fr']; // Ensure we get the parent locale
3838
}
3939

4040
/** @dataProvider provideSlugTests */

0 commit comments

Comments
 (0)