コード例 #1
0
ファイル: SlugTest.php プロジェクト: cawa0505/php-thl-pinyin
 public function testSpecialCharacters()
 {
     $source = '特殊字元~!@#$%^&*()_+{}|:"<>?-=[]\\;\',./';
     $expect = 'teshu-zihyuan------------_-------------------';
     $output = Pinyin::slug($source);
     $this->assertSame($expect, $output);
 }