diff options
Diffstat (limited to 'tests/units/HelperTest.php')
-rw-r--r-- | tests/units/HelperTest.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/units/HelperTest.php b/tests/units/HelperTest.php index 2ae75684..8694e8a2 100644 --- a/tests/units/HelperTest.php +++ b/tests/units/HelperTest.php @@ -18,8 +18,16 @@ class HelperTest extends Base ); $this->assertEquals( - '<p>Task <a href="?controller=a&action=b&c=d&task_id=123" class="" title="" >#123</a></p>', + '<p>Task <a href="?controller=a&action=b&c=d&task_id=123">#123</a></p>', $h->markdown('Task #123', array('controller' => 'a', 'action' => 'b', 'params' => array('c' => 'd'))) ); + + $this->assertEquals( + '<p>Check that: <a href="http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454">http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454</a></p>', + $h->markdown( + 'Check that: http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454', + array('controller' => 'a', 'action' => 'b', 'params' => array('c' => 'd')) + ) + ); } } |