| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | public function testExtractUrls() |
||
| 14 | { |
||
| 15 | $string = "Lorem ipsum http://example.com dolor sit http://example2.com amet http://example3.com"; |
||
| 16 | |||
| 17 | $expected = array( |
||
| 18 | 'http://example.com', |
||
| 19 | 'http://example2.com', |
||
| 20 | 'http://example3.com' |
||
| 21 | ); |
||
| 22 | |||
| 23 | $actual = StringUtils::extractUrls($string); |
||
| 24 | |||
| 25 | $this->assertEquals($expected, $actual); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |