Make WordPress Core


Ignore:
Timestamp:
07/08/2019 12:55:20 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the remaining issues in /tests.

All PHP files in /tests now conform to the PHP coding standards, or have exceptions appropriately marked.

Travis now also runs phpcs on the /tests directory, any future changes to these files must conform entirely to the WordPress PHP coding standards. 🎉

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/l10n/localeSwitcher.php

    r42343 r45607  
    8787        switch_to_locale( 'de_DE' );
    8888
    89         $wp_locale_de_DE = clone $wp_locale;
    90 
    91         // Cleanup.
    92         restore_previous_locale();
    93 
    94         $this->assertEqualSetsWithIndex( $expected, $wp_locale_de_DE->number_format );
     89        $wp_locale_de_de = clone $wp_locale;
     90
     91        // Cleanup.
     92        restore_previous_locale();
     93
     94        $this->assertEqualSetsWithIndex( $expected, $wp_locale_de_de->number_format );
    9595    }
    9696
    9797    public function test_switch_to_locale_en_US() {
    9898        switch_to_locale( 'en_GB' );
    99         $locale_en_GB = get_locale();
     99        $locale_en_gb = get_locale();
    100100        switch_to_locale( 'en_US' );
    101         $locale_en_US = get_locale();
    102 
    103         // Cleanup.
    104         restore_current_locale();
    105 
    106         $this->assertSame( 'en_GB', $locale_en_GB );
    107         $this->assertSame( 'en_US', $locale_en_US );
     101        $locale_en_us = get_locale();
     102
     103        // Cleanup.
     104        restore_current_locale();
     105
     106        $this->assertSame( 'en_GB', $locale_en_gb );
     107        $this->assertSame( 'en_US', $locale_en_us );
    108108    }
    109109
Note: See TracChangeset for help on using the changeset viewer.