Make WordPress Core

Ticket #48022: 48022.3.diff

File 48022.3.diff, 21.2 KB (added by desrosj, 6 years ago)

Include test updates

  • src/wp-includes/formatting.php

     
    28352835                return $matches[0];
    28362836        }
    28372837
    2838         return $matches[1] . "<a href=\"$url\" rel=\"nofollow\">$url</a>" . $suffix;
     2838        return $matches[1] . "<a href=\"$url\" rel=\"nofollow ugc\">$url</a>" . $suffix;
    28392839}
    28402840
    28412841/**
  • tests/phpunit/tests/formatting/MakeClickable.php

     
    4848                        'There was a spoon named (http://wordpress.org) said Alice.',
    4949                );
    5050                $urls_expected = array(
    51                         '<a href="http://wordpress.org/hello.html" rel="nofollow">http://wordpress.org/hello.html</a>',
    52                         'There was a spoon named <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>. Alice!',
    53                         'There was a spoon named <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>, said Alice.',
    54                         'There was a spoon named <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>; said Alice.',
    55                         'There was a spoon named <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>: said Alice.',
    56                         'There was a spoon named (<a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>) said Alice.',
     51                        '<a href="http://wordpress.org/hello.html" rel="nofollow ugc">http://wordpress.org/hello.html</a>',
     52                        'There was a spoon named <a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>. Alice!',
     53                        'There was a spoon named <a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>, said Alice.',
     54                        'There was a spoon named <a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>; said Alice.',
     55                        'There was a spoon named <a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>: said Alice.',
     56                        'There was a spoon named (<a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>) said Alice.',
    5757                );
    5858
    5959                foreach ( $urls_before as $key => $url ) {
     
    7474                        'There was a spoon named (http://wordpress.org)x',
    7575                );
    7676                $urls_expected = array(
    77                         '<a href="http://wordpress.org/hello.html" rel="nofollow">http://wordpress.org/hello.html</a>',
    78                         'There was a spoon named <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>.',
    79                         'There was a spoon named <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>,',
    80                         'There was a spoon named <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>;',
    81                         'There was a spoon named <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>:',
    82                         'There was a spoon named (<a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>)',
    83                         'There was a spoon named (<a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>)x',
     77                        '<a href="http://wordpress.org/hello.html" rel=" ugc ugc">http://wordpress.org/hello.html</a>',
     78                        'There was a spoon named <a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>.',
     79                        'There was a spoon named <a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>,',
     80                        'There was a spoon named <a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>;',
     81                        'There was a spoon named <a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>:',
     82                        'There was a spoon named (<a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>)',
     83                        'There was a spoon named (<a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>)x',
    8484                );
    8585
    8686                foreach ( $urls_before as $key => $url ) {
     
    100100                        'There was a spoon named www.wordpress.org) said Alice.',
    101101                );
    102102                $urls_expected = array(
    103                         '<a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>',
    104                         'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>. Alice!',
    105                         'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>, said Alice.',
    106                         'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>; said Alice.',
    107                         'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>: said Alice.',
    108                         'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>) said Alice.',
     103                        '<a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>',
     104                        'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>. Alice!',
     105                        'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>, said Alice.',
     106                        'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>; said Alice.',
     107                        'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>: said Alice.',
     108                        'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>) said Alice.',
    109109                );
    110110
    111111                foreach ( $urls_before as $key => $url ) {
     
    125125                        'There was a spoon named www.wordpress.org)',
    126126                );
    127127                $urls_expected = array(
    128                         '<a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>',
    129                         'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>.',
    130                         'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>,',
    131                         'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>;',
    132                         'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>:',
    133                         'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a>)',
     128                        '<a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>',
     129                        'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>.',
     130                        'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>,',
     131                        'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>;',
     132                        'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>:',
     133                        'There was a spoon named <a href="http://www.wordpress.org" rel="nofollow ugc">http://www.wordpress.org</a>)',
    134134                );
    135135
    136136                foreach ( $urls_before as $key => $url ) {
     
    146146                        'http://example.com/?a=баба&b=дядо',
    147147                );
    148148                $urls_expected = array(
    149                         '<a href="http://www.詹姆斯.com/" rel="nofollow">http://www.詹姆斯.com/</a>',
    150                         '<a href="http://bg.wikipedia.org/Баба" rel="nofollow">http://bg.wikipedia.org/Баба</a>',
    151                         '<a href="http://example.com/?a=баба&#038;b=дядо" rel="nofollow">http://example.com/?a=баба&#038;b=дядо</a>',
     149                        '<a href="http://www.詹姆斯.com/" rel="nofollow ugc">http://www.詹姆斯.com/</a>',
     150                        '<a href="http://bg.wikipedia.org/Баба" rel="nofollow ugc">http://bg.wikipedia.org/Баба</a>',
     151                        '<a href="http://example.com/?a=баба&#038;b=дядо" rel="nofollow ugc">http://example.com/?a=баба&#038;b=дядо</a>',
    152152                );
    153153                foreach ( $urls_before as $key => $url ) {
    154154                        $this->assertEquals( $urls_expected[ $key ], make_clickable( $url ) );
     
    172172                        Richard Hamming wrote about people getting more done with their doors closed, but',
    173173                );
    174174                $urls_expected = array(
    175                         '<a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>',
    176                         '(<a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>)',
    177                         'blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a> blah',
    178                         'blah (<a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>) blah',
    179                         'blah blah blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a> blah blah',
    180                         'blah blah blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>) blah blah',
    181                         'blah blah (<a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>) blah blah',
    182                         'blah blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>.) blah blah',
    183                         'blah blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>.)moreurl blah blah',
     175                        '<a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow ugc">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>',
     176                        '(<a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow ugc">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>)',
     177                        'blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow ugc">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a> blah',
     178                        'blah (<a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow ugc">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>) blah',
     179                        'blah blah blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow ugc">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a> blah blah',
     180                        'blah blah blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow ugc">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>) blah blah',
     181                        'blah blah (<a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow ugc">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>) blah blah',
     182                        'blah blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow ugc">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>.) blah blah',
     183                        'blah blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow ugc">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>.)moreurl blah blah',
    184184                        'In his famous speech “You and Your research” (here:
    185                         <a href="http://www.cs.virginia.edu/~robins/YouAndYourResearch.html" rel="nofollow">http://www.cs.virginia.edu/~robins/YouAndYourResearch.html</a>)
     185                        <a href="http://www.cs.virginia.edu/~robins/YouAndYourResearch.html" rel="nofollow ugc">http://www.cs.virginia.edu/~robins/YouAndYourResearch.html</a>)
    186186                        Richard Hamming wrote about people getting more done with their doors closed, but',
    187187                );
    188188                foreach ( $urls_before as $key => $url ) {
     
    199199                        'In his famous speech “You and Your research” (here: http://www.cs.virginia.edu/~robins/YouAndYourResearch.html) Richard Hamming wrote about people getting more done with their doors closed...',
    200200                );
    201201                $urls_expected = array(
    202                         'Example: WordPress, test (some text), I love example.com (<a href="http://example.org" rel="nofollow">http://example.org</a>), it is brilliant',
    203                         'Example: WordPress, test (some text), I love example.com (<a href="http://example.com" rel="nofollow">http://example.com</a>), it is brilliant',
    204                         'Some text followed by a bracketed link with a trailing elipsis (<a href="http://example.com" rel="nofollow">http://example.com</a>)...',
    205                         'In his famous speech “You and Your research” (here: <a href="http://www.cs.virginia.edu/~robins/YouAndYourResearch.html" rel="nofollow">http://www.cs.virginia.edu/~robins/YouAndYourResearch.html</a>) Richard Hamming wrote about people getting more done with their doors closed...',
     202                        'Example: WordPress, test (some text), I love example.com (<a href="http://example.org" rel="nofollow ugc">http://example.org</a>), it is brilliant',
     203                        'Example: WordPress, test (some text), I love example.com (<a href="http://example.com" rel="nofollow ugc">http://example.com</a>), it is brilliant',
     204                        'Some text followed by a bracketed link with a trailing elipsis (<a href="http://example.com" rel="nofollow ugc">http://example.com</a>)...',
     205                        'In his famous speech “You and Your research” (here: <a href="http://www.cs.virginia.edu/~robins/YouAndYourResearch.html" rel="nofollow ugc">http://www.cs.virginia.edu/~robins/YouAndYourResearch.html</a>) Richard Hamming wrote about people getting more done with their doors closed...',
    206206                );
    207207                foreach ( $urls_before as $key => $url ) {
    208208                        $this->assertEquals( $urls_expected[ $key ], make_clickable( $url ) );
     
    217217                        'This is a really good tweet http://twitter.com/#!/wordpress/status/25907440233!',
    218218                );
    219219                $urls_expected = array(
    220                         '<a href="http://twitter.com/#!/wordpress/status/25907440233" rel="nofollow">http://twitter.com/#!/wordpress/status/25907440233</a>',
    221                         'This is a really good tweet <a href="http://twitter.com/#!/wordpress/status/25907440233" rel="nofollow">http://twitter.com/#!/wordpress/status/25907440233</a> !',
    222                         'This is a really good tweet <a href="http://twitter.com/#!/wordpress/status/25907440233" rel="nofollow">http://twitter.com/#!/wordpress/status/25907440233</a>!',
     220                        '<a href="http://twitter.com/#!/wordpress/status/25907440233" rel="nofollow ugc">http://twitter.com/#!/wordpress/status/25907440233</a>',
     221                        'This is a really good tweet <a href="http://twitter.com/#!/wordpress/status/25907440233" rel="nofollow ugc">http://twitter.com/#!/wordpress/status/25907440233</a> !',
     222                        'This is a really good tweet <a href="http://twitter.com/#!/wordpress/status/25907440233" rel="nofollow ugc">http://twitter.com/#!/wordpress/status/25907440233</a>!',
    223223                );
    224224                foreach ( $urls_before as $key => $url ) {
    225225                        $this->assertEquals( $urls_expected[ $key ], make_clickable( $url ) );
     
    233233                        'mailto wrapped in angle brackets <foo@example.com>',
    234234                );
    235235                $expected = array(
    236                         'URL wrapped in angle brackets <<a href="http://example.com/" rel="nofollow">http://example.com/</a>>',
    237                         'URL wrapped in angle brackets with padding < <a href="http://example.com/" rel="nofollow">http://example.com/</a> >',
     236                        'URL wrapped in angle brackets <<a href="http://example.com/" rel="nofollow ugc">http://example.com/</a>>',
     237                        'URL wrapped in angle brackets with padding < <a href="http://example.com/" rel="nofollow ugc">http://example.com/</a> >',
    238238                        'mailto wrapped in angle brackets <foo@example.com>',
    239239                );
    240240                foreach ( $before as $key => $url ) {
     
    252252                        'Question mark then URL?http://example.com/',
    253253                );
    254254                $expected = array(
    255                         'Comma then URL,<a href="http://example.com/" rel="nofollow">http://example.com/</a>',
    256                         'Period then URL.<a href="http://example.com/" rel="nofollow">http://example.com/</a>',
    257                         'Semi-colon then URL;<a href="http://example.com/" rel="nofollow">http://example.com/</a>',
    258                         'Colon then URL:<a href="http://example.com/" rel="nofollow">http://example.com/</a>',
    259                         'Exclamation mark then URL!<a href="http://example.com/" rel="nofollow">http://example.com/</a>',
    260                         'Question mark then URL?<a href="http://example.com/" rel="nofollow">http://example.com/</a>',
     255                        'Comma then URL,<a href="http://example.com/" rel="nofollow ugc">http://example.com/</a>',
     256                        'Period then URL.<a href="http://example.com/" rel="nofollow ugc">http://example.com/</a>',
     257                        'Semi-colon then URL;<a href="http://example.com/" rel="nofollow ugc">http://example.com/</a>',
     258                        'Colon then URL:<a href="http://example.com/" rel="nofollow ugc">http://example.com/</a>',
     259                        'Exclamation mark then URL!<a href="http://example.com/" rel="nofollow ugc">http://example.com/</a>',
     260                        'Question mark then URL?<a href="http://example.com/" rel="nofollow ugc">http://example.com/</a>',
    261261                );
    262262                foreach ( $before as $key => $url ) {
    263263                        $this->assertEquals( $expected[ $key ], make_clickable( $url ) );
     
    277277                $urls_expected = array(
    278278                        "<img src='http://trunk.domain/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley'>",
    279279                        "(<img src='http://trunk.domain/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley'>)",
    280                         "<a href=\"http://trunk.domain/testing#something\" rel=\"nofollow\">http://trunk.domain/testing#something</a> (<img src='http://trunk.domain/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley'>)",
    281                         "<a href=\"http://trunk.domain/testing#something\" rel=\"nofollow\">http://trunk.domain/testing#something</a>
     280                        "<a href=\"http://trunk.domain/testing#something\" rel=\" ugc\">http://trunk.domain/testing#something</a> (<img src='http://trunk.domain/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley'>)",
     281                        "<a href=\"http://trunk.domain/testing#something\" rel=\" ugc\">http://trunk.domain/testing#something</a>
    282282                        (<img src='http://trunk.domain/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley'>)",
    283283                        "<span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/nd_BdvG43rE&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' /> <param name='allowfullscreen' value='true' /> <param name='wmode' value='opaque' /> <embed src='http://www.youtube.com/v/nd_BdvG43rE&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='opaque'></embed> </object></span>",
    284284                        '<a href="http://example.com/example.gif" title="Image from http://example.com">Look at this image!</a>',
     
    313313                        '<code>http://wordpress.org</code>',
    314314                        '<pre class="foobar" id="foo">http://wordpress.org</pre>',
    315315                        '<code class="foobar" id="foo">http://wordpress.org</code>',
    316                         '<precustomtag><a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a></precustomtag>',
    317                         '<codecustomtag><a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a></codecustomtag>',
    318                         'URL before pre <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a><pre>http://wordpress.org</pre>',
    319                         'URL before code <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a><code>http://wordpress.org</code>',
    320                         'URL after pre <PRE>http://wordpress.org</PRE><a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>',
    321                         'URL after code <code>http://wordpress.org</code><a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>',
    322                         'URL before and after pre <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a><pre>http://wordpress.org</pre><a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>',
    323                         'URL before and after code <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a><code>http://wordpress.org</code><a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>',
     316                        '<precustomtag><a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a></precustomtag>',
     317                        '<codecustomtag><a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a></codecustomtag>',
     318                        'URL before pre <a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a><pre>http://wordpress.org</pre>',
     319                        'URL before code <a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a><code>http://wordpress.org</code>',
     320                        'URL after pre <PRE>http://wordpress.org</PRE><a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>',
     321                        'URL after code <code>http://wordpress.org</code><a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>',
     322                        'URL before and after pre <a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a><pre>http://wordpress.org</pre><a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>',
     323                        'URL before and after code <a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a><code>http://wordpress.org</code><a href="http://wordpress.org" rel="nofollow ugc">http://wordpress.org</a>',
    324324                        'code inside pre <pre>http://wordpress.org <code>http://wordpress.org</code> http://wordpress.org</pre>',
    325325                );
    326326
     
    338338                        '<p>http://example.com/</p>',
    339339                );
    340340                $urls_expected = array(
    341                         '<span><a href="http://example.com" rel="nofollow">http://example.com</a></span>',
    342                         '<p><a href="http://example.com/" rel="nofollow">http://example.com/</a></p>',
     341                        '<span><a href="http://example.com" rel="nofollow ugc">http://example.com</a></span>',
     342                        '<p><a href="http://example.com/" rel="nofollow ugc">http://example.com/</a></p>',
    343343                );
    344344                foreach ( $urls_before as $key => $url ) {
    345345                        $this->assertEquals( $urls_expected[ $key ], make_clickable( $url ) );