Skip to content

Commit 1c51a01

Browse files
test: add regression for array CN in signature params
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 3a7e3f3 commit 1c51a01

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/php/Unit/Service/SignFileServiceTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,14 @@ public static function providerGetSignatureParamsCommonName(): array {
11661166
'LibreCode',
11671167
'Jane Doe',
11681168
],
1169+
'array CNs should be normalized' => [
1170+
[
1171+
'issuer' => ['CN' => ['LibreCode', 'CA']],
1172+
'subject' => ['CN' => ['Doe', 'Jane']],
1173+
],
1174+
'LibreCode, CA',
1175+
'Doe, Jane',
1176+
],
11691177
'empty CNs' => [
11701178
[
11711179
'issuer' => ['CN' => ''],

0 commit comments

Comments
 (0)