X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FURLDetectionTest.php;h=d83f9faf58e1b296cac5824bc08874dc05595239;hb=78a649ca0af3ffbf1fd23d5ae9e84def7befa79e;hp=45203bf6e3986f73732f35085d74dbabf58a1457;hpb=fc2426d7ce33bba0e1ad4dfc1ed9af7749695b20;p=quix0rs-gnu-social.git
diff --git a/tests/URLDetectionTest.php b/tests/URLDetectionTest.php
index 45203bf6e3..d83f9faf58 100644
--- a/tests/URLDetectionTest.php
+++ b/tests/URLDetectionTest.php
@@ -47,7 +47,9 @@ class URLDetectionTest extends PHPUnit_Framework_TestCase
array('127.0.0.1/\'test',
'127.0.0.1/\'test'),
array('127.0.0.1/"test',
- '127.0.0.1/"test'),
+ '127.0.0.1/"test'),
+ array('127.0.0.1/test"test',
+ '127.0.0.1/test"test'),
array('127.0.0.1/-test',
'127.0.0.1/-test'),
array('127.0.0.1/_test',
@@ -170,6 +172,8 @@ class URLDetectionTest extends PHPUnit_Framework_TestCase
'\'http://example.com\''),
array('"http://example.com"',
'"http://example.com"'),
+ array('"http://example.com/"',
+ '"http://example.com/"'),
array('http://example.com',
'http://example.com'),
array('(http://example.com)',
@@ -181,12 +185,12 @@ class URLDetectionTest extends PHPUnit_Framework_TestCase
array('http://example.com/path/(foo)/bar',
'http://example.com/path/(foo)/bar'),
array('http://example.com/path/[foo]/bar',
- 'http://example.com/path/[foo]/bar'),
+ 'http://example.com/path/[foo]/bar'),
array('http://example.com/path/foo/(bar)',
'http://example.com/path/foo/(bar)'),
//Not a valid url - urls cannot contain unencoded square brackets
array('http://example.com/path/foo/[bar]',
- 'http://example.com/path/foo/[bar]'),
+ 'http://example.com/path/foo/[bar]'),
array('Hey, check out my cool site http://example.com okay?',
'Hey, check out my cool site http://example.com okay?'),
array('What about parens (e.g. http://example.com/path/foo/(bar))?',