Skip to content

Commit 1c9cde7

Browse files
test: add multibyte text wrapping test cases
Add test cases for Portuguese text with accents to verify that the multibyte-safe wordwrap implementation correctly handles text with diacritical marks and other Unicode characters in signature images. Signed-off-by: Vitor Mattos <[email protected]>
1 parent 13d66e3 commit 1c9cde7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/php/Unit/Service/SignatureTextServiceTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ public static function providerSignerNameImage(): array {
203203
'center 175x50 scale 2.5' => ['Secure ✔️', 175, 50, 'center', 2.5],
204204
'left 175x50 scale 3' => ['Sign now', 175, 50, 'left',3],
205205
'right 175x50 scale 4' => ['Signed 🔐', 175, 50, 'right', 4],
206+
207+
// Portuguese text with accents
208+
'center 175x101 portuguese' => ['Imagem da assinatura aqui', 175, 101, 'center', 5],
209+
'right 175x101 portuguese' => ['Imagem da assinatura aqui', 175, 101, 'right', 5],
210+
'left 350x100 portuguese long' => ['Assinado com LibreSign administrador', 350, 100, 'left', 5],
206211
];
207212
}
208213

0 commit comments

Comments
 (0)