Ejemplo n.º 1
0
 public function case_transcode_and_isUtf8()
 {
     $this->given($uΣ = 'Σ')->when($Σ = LUT::transcode($uΣ, 'UTF-8', 'UTF-16'))->then->string($Σ)->isNotEqualTo($uΣ)->boolean(LUT::isUtf8($Σ))->isFalse()->when($Σ = LUT::transcode($Σ, 'UTF-16', 'UTF-8'))->string($Σ)->isEqualTo($uΣ)->boolean(LUT::isUtf8($Σ))->isTrue()->boolean(LUT::isUtf8($uΣ))->isTrue();
 }