diff --git a/cake/tests/cases/libs/view/helpers/text.test.php b/cake/tests/cases/libs/view/helpers/text.test.php index 295d9ce39..249f96749 100644 --- a/cake/tests/cases/libs/view/helpers/text.test.php +++ b/cake/tests/cases/libs/view/helpers/text.test.php @@ -280,6 +280,16 @@ class TextHelperTest extends CakeTestCase { $expected = 'Text with a url www.cot.ag/cuIb2Q and more'; $result = $this->Text->autoLinkUrls($text); $this->assertEqual($expected, $result); + + $text = 'Text with a url http://www.does--not--work.com and more'; + $expected = 'Text with a url http://www.does--not--work.com and more'; + $result = $this->Text->autoLinkUrls($text); + $this->assertEqual($expected, $result); + + $text = 'Text with a url http://www.not--work.com and more'; + $expected = 'Text with a url http://www.not--work.com and more'; + $result = $this->Text->autoLinkUrls($text); + $this->assertEqual($expected, $result); } /**