Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r46586 r47122  
    3636
    3737    public function test_remove_accents_iso8859() {
    38         // File is Latin1 encoded
     38        // File is Latin1-encoded.
    3939        $file   = DIR_TESTDATA . '/formatting/remove_accents.01.input.txt';
    4040        $input  = file_get_contents( $file );
     
    4949     */
    5050    public function test_remove_accents_vowels_diacritic() {
    51         // Vowels with diacritic
    52         // unmarked
     51        // Vowels with diacritic.
     52        // Unmarked.
    5353        $this->assertEquals( 'OoUu', remove_accents( 'ƠơƯư' ) );
    54         // grave accent
     54        // Grave accent.
    5555        $this->assertEquals( 'AaAaEeOoOoUuYy', remove_accents( 'ẦầẰằỀềỒồỜờỪừỲỳ' ) );
    56         // hook
     56        // Hook.
    5757        $this->assertEquals( 'AaAaAaEeEeIiOoOoOoUuUuYy', remove_accents( 'ẢảẨẩẲẳẺẻỂểỈỉỎỏỔổỞởỦủỬửỶỷ' ) );
    58         // tilde
     58        // Tilde.
    5959        $this->assertEquals( 'AaAaEeEeOoOoUuYy', remove_accents( 'ẪẫẴẵẼẽỄễỖỗỠỡỮữỸỹ' ) );
    60         // acute accent
     60        // Acute accent.
    6161        $this->assertEquals( 'AaAaEeOoOoUu', remove_accents( 'ẤấẮắẾếỐốỚớỨứ' ) );
    62         // dot below
     62        // Dot below.
    6363        $this->assertEquals( 'AaAaAaEeEeIiOoOoOoUuUuYy', remove_accents( 'ẠạẬậẶặẸẹỆệỊịỌọỘộỢợỤụỰựỴỵ' ) );
    6464    }
     
    6868     */
    6969    public function test_remove_accents_hanyu_pinyin() {
    70         // Vowels with diacritic (Chinese, Hanyu Pinyin)
    71         // macron
     70        // Vowels with diacritic (Chinese, Hanyu Pinyin).
     71        // Macron.
    7272        $this->assertEquals( 'aeiouuAEIOUU', remove_accents( 'āēīōūǖĀĒĪŌŪǕ' ) );
    73         // acute accent
     73        // Acute accent.
    7474        $this->assertEquals( 'aeiouuAEIOUU', remove_accents( 'áéíóúǘÁÉÍÓÚǗ' ) );
    75         // caron
     75        // Caron.
    7676        $this->assertEquals( 'aeiouuAEIOUU', remove_accents( 'ǎěǐǒǔǚǍĚǏǑǓǙ' ) );
    77         // grave accent
     77        // Grave accent.
    7878        $this->assertEquals( 'aeiouuAEIOUU', remove_accents( 'àèìòùǜÀÈÌÒÙǛ' ) );
    79         // unmarked
     79        // Unmarked.
    8080        $this->assertEquals( 'aaeiouuAEIOUU', remove_accents( 'aɑeiouüAEIOUÜ' ) );
    8181    }
Note: See TracChangeset for help on using the changeset viewer.