X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FURLDetectionTest.php;h=87b53764679db95d990bda94faa296be0dd6b490;hb=2a56245614f90221946ab918e820f6546133a212;hp=767f895bbae4c3c1ec8d7af169a19b95910d4066;hpb=be5d113fc684fcbe41b8374c62bfeb0f267216b7;p=quix0rs-gnu-social.git
diff --git a/tests/URLDetectionTest.php b/tests/URLDetectionTest.php
index 767f895bba..87b5376467 100644
--- a/tests/URLDetectionTest.php
+++ b/tests/URLDetectionTest.php
@@ -25,14 +25,36 @@ class URLDetectionTest extends PHPUnit_Framework_TestCase
static public function provider()
{
return array(
+ array('not a link :: no way',
+ 'not a link :: no way'),
array('http://127.0.0.1',
'http://127.0.0.1'),
array('127.0.0.1',
'127.0.0.1'),
array('127.0.0.1:99',
'127.0.0.1:99'),
- array('127.0.0.1/test.php',
- '127.0.0.1/test.php'),
+ array('127.0.0.1/Name:test.php',
+ '127.0.0.1/Name:test.php'),
+ array('127.0.0.1/~test',
+ '127.0.0.1/~test'),
+ array('127.0.0.1/+test',
+ '127.0.0.1/+test'),
+ array('127.0.0.1/$test',
+ '127.0.0.1/$test'),
+ array('127.0.0.1/\'test',
+ '127.0.0.1/\'test'),
+ array('127.0.0.1/"test',
+ '127.0.0.1/"test'),
+ array('127.0.0.1/-test',
+ '127.0.0.1/-test'),
+ array('127.0.0.1/_test',
+ '127.0.0.1/_test'),
+ array('127.0.0.1/!test',
+ '127.0.0.1/!test'),
+ array('127.0.0.1/*test',
+ '127.0.0.1/*test'),
+ array('127.0.0.1/test%20stuff',
+ '127.0.0.1/test%20stuff'),
array('http://[::1]:99/test.php',
'http://[::1]:99/test.php'),
array('http://::1/test.php',