Permalink
Browse files

Added findUrls test for ip addresses

  • Loading branch information...
1 parent 759eb5f commit bfa695942d87df4c0d3554276a762bdc986da7eb @barnabywalters committed Jan 17, 2013
Showing with 8 additions and 1 deletion.
  1. +8 −1 tests/BarnabyWalters/Helpers/HelpersTest.php
@@ -295,7 +295,14 @@ public function testFindUrlsFindsUrlsInAHref() {
$this->assertEquals($expected, $result);
}
-
+
+ public function testFindUrlsFindsIpAddresses() {
+ $html = 'Blah blah blah 127.0.0.1/notes/711';
+ $expected = ['http://127.0.0.1/notes/711'];
+ $result = H::findUrls($html);
+
+ $this->assertEquals($expected, $result);
+ }
}
// EOF

0 comments on commit bfa6959

Please sign in to comment.