Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (8 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/ConvertInvalidEntries.php

    r32947 r42343  
    66class Tests_Formatting_ConvertInvalidEntities extends WP_UnitTestCase {
    77    function test_replaces_windows1252_entities_with_unicode_ones() {
    8         $input = "‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ";
    9         $output = "‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ";
     8        $input  = '‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ';
     9        $output = '‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ';
    1010        $this->assertEquals( $output, convert_invalid_entities( $input ) );
    1111    }
     
    1515     */
    1616    function test_replaces_latin_letter_z_with_caron() {
    17         $input = "Žž";
    18         $output = "Žž";
     17        $input  = 'Žž';
     18        $output = 'Žž';
    1919        $this->assertEquals( $output, convert_invalid_entities( $input ) );
    2020    }
    2121
    2222    function test_escapes_lone_ampersands() {
    23         $this->assertEquals("at&t", convert_chars("at&t"));
     23        $this->assertEquals( 'at&t', convert_chars( 'at&t' ) );
    2424    }
    2525}
Note: See TracChangeset for help on using the changeset viewer.