- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/GetUrlInContent.php
r46586 r47122 13 13 public function get_input_output() { 14 14 return array( 15 array( 15 array( // Empty content. 16 16 '', 17 17 false, 18 ), //empty content19 array( 18 ), 19 array( // No URLs. 20 20 '<div>NO URL CONTENT</div>', 21 21 false, 22 ), //no URLs23 array( 22 ), 23 array( // Ignore none link elements. 24 24 '<div href="/relative.php">NO URL CONTENT</div>', 25 25 false, 26 ), // ignore none link elements27 array( 26 ), 27 array( // Single link. 28 28 'ABC<div><a href="/relative.php">LINK</a> CONTENT</div>', 29 29 '/relative.php', 30 ), // single link31 array( 30 ), 31 array( // Multiple links. 32 32 'ABC<div><a href="/relative.php">LINK</a> CONTENT <a href="/suppress.php">LINK</a></div>', 33 33 '/relative.php', 34 ), // multiple links35 array( 34 ), 35 array( // Escape link. 36 36 'ABC<div><a href="http://example.com/Mr%20WordPress 2">LINK</a> CONTENT </div>', 37 37 'http://example.com/Mr%20WordPress%202', 38 ), // escape link38 ), 39 39 ); 40 40 }
Note: See TracChangeset
for help on using the changeset viewer.