Skip to content

Commit ca7c0f7

Browse files
committed
Add trailing parenthesis test
1 parent 3008917 commit ca7c0f7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/AutolinkTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,18 @@ public function testLocalhost(): void
439439
);
440440
}
441441

442+
public function testTrailingParenthesis(): void
443+
{
444+
$txt = 'Link to (https://google.com) with some text.';
445+
446+
$html = $this->instance->convert($txt);
447+
448+
assertEquals(
449+
'Link to (<a href="https://google.com">https://google.com</a>) with some text.',
450+
$html,
451+
);
452+
}
453+
442454
/**
443455
* urlProvider
444456
*

0 commit comments

Comments
 (0)