diff --git a/tests/integration/UrlLinkerInTrustedHtmlTest.php b/tests/integration/UrlLinkerInTrustedHtmlTest.php
index 765281e..31e33a1 100644
--- a/tests/integration/UrlLinkerInTrustedHtmlTest.php
+++ b/tests/integration/UrlLinkerInTrustedHtmlTest.php
@@ -97,4 +97,51 @@ public function testUrlsGetLinkedInText($text, $expectedLinked, $message = null)
'Html around: '.$message
);
}
+
+ /**
+ * @dataProvider provideTextsWithHtml
+ *
+ * @param string $text
+ * @param string $expectedLinked
+ * @param string|null $message
+ */
+ public function testHtmlInText($text, $expectedLinked, $message = null)
+ {
+ $this->urlLinker->setAllowUpperCaseUrlSchemes(true);
+
+ $this->testUrlsGetLinkedInText($text, $expectedLinked);
+ }
+
+ /**
+ * provide html in text
+ */
+ public function provideTextsWithHtml()
+ {
+ return array(
+ array(
+ 'example.com',
+ 'example.com',
+ ),
+ array(
+ 'example.com',
+ 'example.com',
+ ),
+ array(
+ 'example.com',
+ 'example.com',
+ ),
+ array(
+ 'http://example.com?a=b&c=d',
+ $this->link('http://example.com?a=b&c=d', 'example.com'),
+ ),
+ array(
+ 'http://example.com?a=b&%3bc=d',
+ $this->link('http://example.com?a=b&%3bc=d', 'example.com'),
+ ),
+ array(
+ 'http://example.com?a=b&c=d',
+ $this->link('http://example.com?a=b', 'example.com') . '&c=d',
+ ),
+ );
+ }
}