X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=tests%2FURLDetectionTest.php;h=d83f9faf58e1b296cac5824bc08874dc05595239;hb=5c428f8adf5d4686988f371e3de204ac6e70b99a;hp=45203bf6e3986f73732f35085d74dbabf58a1457;hpb=bf1c662990af63b9bd7cf8261974808bea0ca816;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))?',