- Timestamp:
- 02/21/2020 01:05:39 PM (6 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/formatting/MakeClickable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
-
branches/3.8/tests/phpunit/tests/formatting/MakeClickable.php
r26094 r47338 364 364 $this->assertEquals( $in, $out ); 365 365 } 366 367 /**368 * @ticket 16859369 */370 function test_square_brackets() {371 $urls_before = array(372 'http://example.com/?foo[bar]=baz',373 'http://example.com/?baz=bar&foo[bar]=baz',374 );375 $urls_expected = array(376 '<a href="http://example.com/?foo%5Bbar%5D=baz" rel="nofollow">http://example.com/?foo%5Bbar%5D=baz</a>',377 '<a href="http://example.com/?baz=bar&foo%5Bbar%5D=baz" rel="nofollow">http://example.com/?baz=bar&foo%5Bbar%5D=baz</a>',378 );379 foreach ($urls_before as $key => $url) {380 $this->assertEquals( $urls_expected[$key], make_clickable( $url ) );381 }382 }383 366 }
Note: See TracChangeset
for help on using the changeset viewer.