Make WordPress Core

Ticket #17738: 17738.tests.2.patch

File 17738.tests.2.patch, 1.6 KB (added by ampt, 13 years ago)

Updated tests

  • wp-testcase/test_includes_formatting.php

     
    12031203
    12041204                $this->assertEquals( $output, remove_accents( $input ), 'remove_accents from ISO-8859-1 text' );
    12051205        }
     1206
     1207        // #17738
     1208        public function test_replaces_vowels_diacritic() {
     1209                $this->assertEquals( 'OoUu', remove_accents( 'ƠơƯư' ), 'remove_accents replaces vowels with diacritic' );
     1210        }
     1211
     1212        public function test_replaces_grave_accent() {
     1213                $this->assertEquals( 'AaAaEeOoOoUuYy', remove_accents( 'ẦầẰằỀềỒồỜờỪừỲỳ' ), 'remove_accents replaces grave diacritic' );
     1214        }
     1215
     1216        public function test_replaces_hook() {
     1217                $this->assertEquals( 'AaAaAaEeEeIiOoOoOoUuUuYy', remove_accents( 'ẢảẨẩẲẳẺẻỂểỈỉỎỏỔổỞởỦủỬửỶỷ' ), 'remove_accents replaces hook diacritic' );
     1218        }
     1219
     1220        public function test_replaces_tilde() {
     1221                $this->assertEquals( 'AaAaEeEeOoOoUuYy', remove_accents( 'ẪẫẴẵẼẽỄễỖỗỠỡỮữỸỹ' ), 'remove_accents replaces tilde diacritic' );
     1222        }
     1223
     1224        public function test_replaces_acute() {
     1225                $this->assertEquals( 'AaAaEeOoOoUu', remove_accents( 'ẤấẮắẾếỐốỚớỨứ' ), 'remove_accents replaces accute accent' );
     1226        }
     1227
     1228        public function test_replaces_dot_below() {
     1229                $this->assertEquals( 'AaAaAaEeEeIiOoOoOoUuUuYy', remove_accents( 'ẠạẬậẶặẸẹỆệỊịỌọỘộỢợỤụỰựỴỵ' ), 'remove_accents replaces dot below' );
     1230        }
    12061231}
    12071232
    12081233?>