aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/LinkUtilsTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-10-08 15:05:50 +0200
committerArthurHoaro <arthur@hoa.ro>2017-10-08 15:05:50 +0200
commitb14dfc23dd8c4ab1c2cf5788c205a19bff0c1f84 (patch)
treeb6bd2d066410bc8e6a09bbd057df728b5de1493e /tests/LinkUtilsTest.php
parent2c049b673acdd10125db9c3c271eef5bd3f5fc17 (diff)
parentecccb14e2ab4e5f372ea9946b29995c3c7122a5c (diff)
downloadShaarli-b14dfc23dd8c4ab1c2cf5788c205a19bff0c1f84.tar.gz
Shaarli-b14dfc23dd8c4ab1c2cf5788c205a19bff0c1f84.tar.zst
Shaarli-b14dfc23dd8c4ab1c2cf5788c205a19bff0c1f84.zip
Merge tag 'v0.9.2' into latest
Release v0.9.2
Diffstat (limited to 'tests/LinkUtilsTest.php')
-rw-r--r--tests/LinkUtilsTest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/LinkUtilsTest.php b/tests/LinkUtilsTest.php
index 7c0d4b0b..c77922ec 100644
--- a/tests/LinkUtilsTest.php
+++ b/tests/LinkUtilsTest.php
@@ -103,6 +103,16 @@ class LinkUtilsTest extends PHPUnit_Framework_TestCase
103 $expectedText = 'stuff <a href="http://hello.there/is=someone#here">http://hello.there/is=someone#here</a> otherstuff'; 103 $expectedText = 'stuff <a href="http://hello.there/is=someone#here">http://hello.there/is=someone#here</a> otherstuff';
104 $processedText = text2clickable($text, ''); 104 $processedText = text2clickable($text, '');
105 $this->assertEquals($expectedText, $processedText); 105 $this->assertEquals($expectedText, $processedText);
106
107 $text = 'stuff http://hello.there/is=someone#here(please) otherstuff';
108 $expectedText = 'stuff <a href="http://hello.there/is=someone#here(please)">http://hello.there/is=someone#here(please)</a> otherstuff';
109 $processedText = text2clickable($text, '');
110 $this->assertEquals($expectedText, $processedText);
111
112 $text = 'stuff http://hello.there/is=someone#here(please)&no otherstuff';
113 $expectedText = 'stuff <a href="http://hello.there/is=someone#here(please)&no">http://hello.there/is=someone#here(please)&no</a> otherstuff';
114 $processedText = text2clickable($text, '');
115 $this->assertEquals($expectedText, $processedText);
106 } 116 }
107 117
108 /** 118 /**