Changeset 47122 for trunk/tests/phpunit/tests/formatting/MakeClickable.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/MakeClickable.php
r46586 r47122 37 37 } 38 38 39 // tests that make_clickable will not link trailing periods, commas and 40 // (semi-)colons in URLs with protocol (i.e. http://wordpress.org) 39 /** 40 * Tests that make_clickable() will not link trailing periods, commas, 41 * and (semi-)colons in URLs with protocol (i.e. http://wordpress.org). 42 */ 41 43 function test_strip_trailing_with_protocol() { 42 44 $urls_before = array( … … 62 64 } 63 65 64 // tests that make_clickable will not link trailing periods, commas and 65 // (semi-)colons in URLs with protocol (i.e. http://wordpress.org) 66 /** 67 * Tests that make_clickable() will not link trailing periods, commas, 68 * and (semi-)colons in URLs with protocol (i.e. http://wordpress.org). 69 */ 66 70 function test_strip_trailing_with_protocol_nothing_afterwards() { 67 71 $urls_before = array( … … 89 93 } 90 94 91 // tests that make_clickable will not link trailing periods, commas and 92 // (semi-)colons in URLs without protocol (i.e. www.wordpress.org) 95 /** 96 * Tests that make_clickable() will not link trailing periods, commas, 97 * and (semi-)colons in URLs without protocol (i.e. www.wordpress.org). 98 */ 93 99 function test_strip_trailing_without_protocol() { 94 100 $urls_before = array( … … 114 120 } 115 121 116 // tests that make_clickable will not link trailing periods, commas and 117 // (semi-)colons in URLs without protocol (i.e. www.wordpress.org) 122 /** 123 * Tests that make_clickable() will not link trailing periods, commas, 124 * and (semi-)colons in URLs without protocol (i.e. www.wordpress.org). 125 */ 118 126 function test_strip_trailing_without_protocol_nothing_afterwards() { 119 127 $urls_before = array( … … 139 147 } 140 148 141 // #4570 149 /** 150 * @ticket 4570 151 */ 142 152 function test_iri() { 143 153 $urls_before = array( … … 156 166 } 157 167 158 // #10990 168 /** 169 * @ticket 10990 170 */ 159 171 function test_brackets_in_urls() { 160 172 $urls_before = array( … … 191 203 } 192 204 193 // Based on a real comments which were incorrectly linked. #11211 205 /** 206 * Based on real comments which were incorrectly linked. 207 * 208 * @ticket 11211 209 */ 194 210 function test_real_world_examples() { 195 211 $urls_before = array( … … 210 226 } 211 227 212 // #14993 228 /** 229 * @ticket 14993 230 */ 213 231 function test_twitter_hash_bang() { 214 232 $urls_before = array( … … 350 368 $in = array( 351 369 'Some text with a link <a href="http://example.com">http://example.com</a>', 352 // '<a href="http://wordpress.org">This is already a link www.wordpress.org</a>', // fails in 3.3.1 too370 // '<a href="http://wordpress.org">This is already a link www.wordpress.org</a>', // Fails in 3.3.1 too. 353 371 ); 354 372 foreach ( $in as $text ) {
Note: See TracChangeset
for help on using the changeset viewer.