Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (9 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/functions/canonical-charset.php

    r42200 r42343  
    5656
    5757                update_option( 'blog_charset', 'utf8' );
    58                 $this->assertEquals( 'UTF-8', get_option( 'blog_charset') );
     58                $this->assertEquals( 'UTF-8', get_option( 'blog_charset' ) );
    5959
    6060                update_option( 'blog_charset', 'utf-8' );
    61                 $this->assertEquals( 'UTF-8', get_option( 'blog_charset') );
     61                $this->assertEquals( 'UTF-8', get_option( 'blog_charset' ) );
    6262
    6363                update_option( 'blog_charset', 'UTF8' );
    64                 $this->assertEquals( 'UTF-8', get_option( 'blog_charset') );
     64                $this->assertEquals( 'UTF-8', get_option( 'blog_charset' ) );
    6565
    6666                update_option( 'blog_charset', 'UTF-8' );
    67                 $this->assertEquals( 'UTF-8', get_option( 'blog_charset') );
     67                $this->assertEquals( 'UTF-8', get_option( 'blog_charset' ) );
    6868
    6969                update_option( 'blog_charset', 'ISO-8859-1' );
    70                 $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset') );
     70                $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset' ) );
    7171
    7272                update_option( 'blog_charset', 'ISO8859-1' );
    73                 $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset') );
     73                $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset' ) );
    7474
    7575                update_option( 'blog_charset', 'iso8859-1' );
    76                 $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset') );
     76                $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset' ) );
    7777
    7878                update_option( 'blog_charset', 'iso-8859-1' );
    79                 $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset') );
     79                $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset' ) );
    8080
    8181                // Arbitrary strings are passed through.
    8282                update_option( 'blog_charset', 'foobarbaz' );
    83                 $this->assertEquals( 'foobarbaz', get_option( 'blog_charset') );
     83                $this->assertEquals( 'foobarbaz', get_option( 'blog_charset' ) );
    8484
    8585                update_option( 'blog_charset', $orig_blog_charset );
Note: See TracChangeset for help on using the changeset viewer.