$reflection->newInstance()) ->toThrow(\ReflectionException::class); }); it('transliterates accented and special characters to ascii', function (): void { // GIVEN $input = 'Émincés & Rôti, crème brûlée, ça va ?'; // WHEN $result = StringHelper::transliterate($input); // THEN expect($result)->toBe('Eminces & Roti, creme brulee, ca va ?'); }); it('handles empty strings and plain ascii strings without modification', function (): void { // GIVEN $empty = ''; $ascii = 'hello world 123'; // WHEN & THEN expect(StringHelper::transliterate($empty))->toBe('') ->and(StringHelper::transliterate($ascii))->toBe('hello world 123'); }); });