Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/WpReplaceInHtmlTags.php

    r33425 r42343  
    1111     */
    1212    function test_wp_replace_in_html_tags( $input, $output ) {
    13         return $this->assertEquals( $output, wp_replace_in_html_tags( $input, array( "\n" => " " ) ) );
     13        return $this->assertEquals( $output, wp_replace_in_html_tags( $input, array( "\n" => ' ' ) ) );
    1414    }
    1515
     
    2222            array(
    2323                "<Hello \n World>",
    24                 "<Hello   World>",
     24                '<Hello   World>',
    2525            ),
    2626            array(
    2727                "<!-- Hello \n World -->",
    28                 "<!-- Hello   World -->",
     28                '<!-- Hello   World -->',
    2929            ),
    3030            array(
    3131                "<!-- Hello <\n> World -->",
    32                 "<!-- Hello < > World -->",
     32                '<!-- Hello < > World -->',
    3333            ),
    3434        );
    3535    }
    3636}
    37 ?>
     37
Note: See TracChangeset for help on using the changeset viewer.