public function test_linkify() { $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>'; $this->assertEquals($expect, Util::linkify($input)); $this->assertEquals($expect, util::linkify($expect), 'linkify() tried to double linkify an href.'); }