Beispiel #1
0
 public function testSpecialCharacters()
 {
     $source = '特殊字元~!@#$%^&*()_+{}|:"<>?-=[]\\;\',./';
     $expect = 'teshu-zihyuan------------_-------------------';
     $output = Pinyin::slug($source);
     $this->assertSame($expect, $output);
 }