示例#1
0
文件: String.php 项目: Hywan/String
 public function case_to_binary_code()
 {
     $this->when($result = LUT::toBinaryCode('~'))->then->string($result)->isEqualTo('01111110')->when($result = LUT::toBinaryCode('§'))->then->string($result)->isEqualTo('1100001010100111')->when($result = LUT::toBinaryCode('ሇ'))->then->string($result)->isEqualTo('111000011000100010000111')->when($result = LUT::toBinaryCode('💩'))->then->string($result)->isEqualTo('11110000100111111001001010101001');
 }