Skip to content

Commit

Permalink
#4 fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Nov 22, 2014
1 parent c27835f commit a68548e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Pinyin/Pinyin.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static function pinyin($string, array $settings = array())
*
* @return string
*/
public static function letter($string, $setting = array())
public static function letter($string, array $setting = array())
{
$default = array('delimiter' => null, 'uppercase' => false);
$setting = array_merge($default, $setting);
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public function testLetters()
$this->assertEquals('N-H', Pinyin::letter('您好', array('delimiter' => '-', 'uppercase' => true)));
$this->assertEquals('c q', Pinyin::letter('重庆'));
$this->assertEquals('z y', Pinyin::letter('重要'));
$this->assertEquals('nh', Pinyin::letter('您好', ''));
$this->assertEquals('kxll', Pinyin::letter('康熙来了', ''));
$this->assertEquals('nh', Pinyin::letter('您好', array('delimiter' => '')));
$this->assertEquals('kxll', Pinyin::letter('康熙来了', array('delimiter' => '')));
$this->assertEquals('d z x w q l x b d d z d g m h', Pinyin::letter('带着希望去旅行,比到达终点更美好'));
$this->assertEquals('z q s l z w z w', Pinyin::letter('赵钱孙李 周吴郑王'));
}
Expand Down

0 comments on commit a68548e

Please sign in to comment.