| 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 | } |