Skip to content

[String] Example from the documentation is not working (bug report + failing test) #34751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Symfony/Component/String/Tests/SluggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SluggerTest extends TestCase
* @requires extension intl
* @dataProvider provideSlug
*/
public function testSlug(string $string, string $locale, string $expectedSlug)
public function testSlug(string $string, ?string $locale, string $expectedSlug)
{
$slugger = new AsciiSlugger($locale);

Expand All @@ -36,6 +36,7 @@ public static function provideSlug(): array
['Αυτή η τιμή πρέπει να είναι ψευδής', 'el', 'Avti-i-timi-prepi-na-inai-psevdhis'],
['该变量的值应为', 'zh', 'gai-bian-liang-de-zhi-ying-wei'],
['該變數的值應為', 'zh_TW', 'gai-bian-shu-de-zhi-ying-wei'],
['Wôrķšƥáçè ~~sèťtïñğš~~', null, 'Workspace-settings'],
];
}

Expand Down