diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-09-09 22:52:38 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-09-09 22:52:38 -0400 |
commit | d7ae0ed4fd755ebad0788a17d0f2fb6a6ca9d63b (patch) | |
tree | df58e167fe84f49af11edce4d0a7ebc34e480510 /tests/URLDetectionTest.php | |
parent | beae3db41375879e725af053edf8041bbd76ac8c (diff) | |
parent | aecdba1ded89b45f32d0b7615ce6b103478403dd (diff) |
Merge remote branch 'laconica/0.8.x' into 0.9.x
Conflicts:
lib/omb.php
Diffstat (limited to 'tests/URLDetectionTest.php')
-rw-r--r-- | tests/URLDetectionTest.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/URLDetectionTest.php b/tests/URLDetectionTest.php index 9a103b6f7..87b537646 100644 --- a/tests/URLDetectionTest.php +++ b/tests/URLDetectionTest.php @@ -25,6 +25,8 @@ 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', '<a href="http://127.0.0.1/" rel="external">http://127.0.0.1</a>'), array('127.0.0.1', @@ -35,6 +37,22 @@ class URLDetectionTest extends PHPUnit_Framework_TestCase '<a href="http://127.0.0.1/Name:test.php" rel="external">127.0.0.1/Name:test.php</a>'), array('127.0.0.1/~test', '<a href="http://127.0.0.1/~test" rel="external">127.0.0.1/~test</a>'), + array('127.0.0.1/+test', + '<a href="http://127.0.0.1/+test" rel="external">127.0.0.1/+test</a>'), + array('127.0.0.1/$test', + '<a href="http://127.0.0.1/$test" rel="external">127.0.0.1/$test</a>'), + array('127.0.0.1/\'test', + '<a href="http://127.0.0.1/\'test" rel="external">127.0.0.1/\'test</a>'), + array('127.0.0.1/"test', + '<a href="http://127.0.0.1/"test" rel="external">127.0.0.1/"test</a>'), + array('127.0.0.1/-test', + '<a href="http://127.0.0.1/-test" rel="external">127.0.0.1/-test</a>'), + array('127.0.0.1/_test', + '<a href="http://127.0.0.1/_test" rel="external">127.0.0.1/_test</a>'), + array('127.0.0.1/!test', + '<a href="http://127.0.0.1/!test" rel="external">127.0.0.1/!test</a>'), + array('127.0.0.1/*test', + '<a href="http://127.0.0.1/*test" rel="external">127.0.0.1/*test</a>'), array('127.0.0.1/test%20stuff', '<a href="http://127.0.0.1/test%20stuff" rel="external">127.0.0.1/test%20stuff</a>'), array('http://[::1]:99/test.php', |