summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-08-26 10:02:07 +1200
committerBrenda Wallace <shiny@cpan.org>2009-08-26 10:02:07 +1200
commit6c3149334cf69a33026a75be9f5ea579b2de3b8d (patch)
tree7150a6bd920f2f7c1b29b2cd50645885a7b6ed62 /tests
parent3400f6f431436552d3bef81a4b25733db2cdd9b6 (diff)
parenta2117961be463d566c8f3c6ccd9b8e840f171804 (diff)
Merge commit 'mainline-write/0.8.x' into 0.8.x
Diffstat (limited to 'tests')
-rw-r--r--tests/HashTagDetectionTests.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/HashTagDetectionTests.php b/tests/HashTagDetectionTests.php
index 4f0b31b0d..283226bd4 100644
--- a/tests/HashTagDetectionTests.php
+++ b/tests/HashTagDetectionTests.php
@@ -27,8 +27,20 @@ class HashTagDetectionTests extends PHPUnit_Framework_TestCase
return array(
array('hello',
'hello'),
- array('#hello',
- '#<span class="tag"><a href="' . common_local_url('tag', array('tag' => common_canonical_tag('hello'))) . '" rel="tag">hello</a></span>'),
+ array('#hello people',
+ '#<span class="tag"><a href="' . common_local_url('tag', array('tag' => common_canonical_tag('hello'))) . '" rel="tag">hello</a></span> people'),
+ array('"#hello" people',
+ '&quot;#<span class="tag"><a href="' . common_local_url('tag', array('tag' => common_canonical_tag('hello'))) . '" rel="tag">hello</a></span>&quot; people'),
+ array('say "#hello" people',
+ 'say &quot;#<span class="tag"><a href="' . common_local_url('tag', array('tag' => common_canonical_tag('hello'))) . '" rel="tag">hello</a></span>&quot; people'),
+ array('say (#hello) people',
+ 'say (#<span class="tag"><a href="' . common_local_url('tag', array('tag' => common_canonical_tag('hello'))) . '" rel="tag">hello</a></span>) people'),
+ array('say [#hello] people',
+ 'say [#<span class="tag"><a href="' . common_local_url('tag', array('tag' => common_canonical_tag('hello'))) . '" rel="tag">hello</a></span>] people'),
+ array('say {#hello} people',
+ 'say {#<span class="tag"><a href="' . common_local_url('tag', array('tag' => common_canonical_tag('hello'))) . '" rel="tag">hello</a></span>} people'),
+ array('say \'#hello\' people',
+ 'say \'#<span class="tag"><a href="' . common_local_url('tag', array('tag' => common_canonical_tag('hello'))) . '" rel="tag">hello</a></span>\' people'),
);
}
}