assertContains("http://www.sugarcrm.com",$text, "Url encoded incorrectly"); $this->assertNotContains("http://amazon.com", $text, "Second link should not be encoded"); } public function testGetUrls() { $message = "This test contains a url here http://www.sugarcrm.com and not here http://amazon.com"; $result = getUrls($message); $this->assertContains('http://www.sugarcrm.com', $result,' Could not find first url.'); $this->assertContains('http://amazon.com', $result,' Could not find second url.'); } } ?>