public function testParseLinky() { $input = 'great websites: http://www.google.com?param=test and http://yahoo.com/a/nested/folder'; $expect = 'great websites: <a href="http://www.google.com?param=test">http://www.google.com?param=test</a>' . ' and <a href="http://yahoo.com/a/nested/folder">http://yahoo.com/a/nested/folder</a>'; is($expect, Url::parseLink($input)); is($expect, Url::parseLink($expect)); }