Skip to content

Commit

Permalink
Added test for link with quote after it
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Jun 7, 2011
1 parent d63eb2a commit a4b7611
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/TestOfPost.php
Expand Up @@ -52,7 +52,9 @@ public function testExtractURLs() {
"would you believe this url? http://foo.com/more_(than)_one_(parens) " =>
array('http://foo.com/more_(than)_one_(parens)'),
"detects embedding <http://foo.com/blah_blah/> nicely <tag>http://example.com</tag>"
=> array('http://foo.com/blah_blah/', 'http://example.com') );
=> array('http://foo.com/blah_blah/', 'http://example.com'),
'"RT @someone doesnt screw up RTs with quotes that bookend a link like http://example.com"'
=> array('http://example.com') );

foreach ($test_patterns as $test_text=>$expected_urls) {
$urls = Post::extractURLs($test_text);
Expand Down

0 comments on commit a4b7611

Please sign in to comment.