- Timestamp:
- 02/20/2020 05:04:42 PM (5 years ago)
- Location:
- branches/3.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.9
-
branches/3.9/tests/phpunit/tests/formatting/MakeClickable.php
r26974 r47329 366 366 367 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 384 /**385 368 * @ticket 19028 386 369 */
Note: See TracChangeset
for help on using the changeset viewer.