예제 #1
0
파일: Issue.php 프로젝트: Hywan/String
 public function case_github_26()
 {
     $this->when($result = LUT::toCode(chr(160)))->then->integer($result)->isEqualTo(0xa0);
 }
예제 #2
0
파일: String.php 프로젝트: Hywan/String
 public function case_to_code()
 {
     $this->when($result = LUT::toCode('~'))->then->integer($result)->isEqualTo(0x7e)->when($result = LUT::toCode('§'))->then->integer($result)->isEqualTo(0xa7)->when($result = LUT::toCode('ሇ'))->then->integer($result)->isEqualTo(0x1207)->when($result = LUT::toCode('💩'))->then->integer($result)->isEqualTo(0x1f4a9);
 }